Class DeviceCoverageCollector

Namespace
ProtoTest.Devices
Assembly
ProtoTest.Devices.dll

Coverage of a device protocol: every message kind the suite asserted counts as covered, and every kind a registered IProtoDeviceProtocol declares but no test asserted is reported as a gap - the OpenAPI treatment for a device protocol.

public sealed class DeviceCoverageCollector : ProtoCoverageCollector, IProtoCollector, IProtoReportSource
Inheritance
DeviceCoverageCollector
Implements
Inherited Members
Extension Methods

Constructors

DeviceCoverageCollector(string)

Creates the collector for a target, accepting every observation kind it sees.

public DeviceCoverageCollector(string targetName = "Devices")

Parameters

targetName string

DeviceCoverageCollector(string, IEnumerable<IProtoDeviceProtocol>?)

Creates the collector with the protocol catalogs whose untested message kinds it reports.

public DeviceCoverageCollector(string targetName, IEnumerable<IProtoDeviceProtocol>? protocols)

Parameters

targetName string
protocols IEnumerable<IProtoDeviceProtocol>

Properties

Category

public override string Category { get; }

Property Value

string

Methods

GetReportItems()

public override IEnumerable<ProtoReportItem> GetReportItems()

Returns

IEnumerable<ProtoReportItem>