Class WireMockCoverageCollector
Aggregates one fake's observations as stub coverage: every registered stub is an item, uncovered until a matched request for it arrives. A stub the run registered but no test's system under test called stays visible as a gap, like an unhit route in REST coverage.
public sealed class WireMockCoverageCollector : ProtoCoverageCollector, IProtoCollector, IProtoReportSource
- Inheritance
-
WireMockCoverageCollector
- Implements
- Inherited Members
- Extension Methods
Constructors
WireMockCoverageCollector(string)
Aggregates one fake's observations as stub coverage: every registered stub is an item, uncovered until a matched request for it arrives. A stub the run registered but no test's system under test called stays visible as a gap, like an unhit route in REST coverage.
public WireMockCoverageCollector(string targetName)
Parameters
targetNamestring
Properties
Category
public override string Category { get; }
Property Value
Methods
CanCollect(ProtoObservation)
Determines whether this collector accepts an observation.
public override bool CanCollect(ProtoObservation observation)
Parameters
observationProtoObservation
Returns
Collect(ProtoObservation)
Records an incoming observation. Implementations should support concurrent calls when tests or requests execute in parallel.
public override void Collect(ProtoObservation observation)
Parameters
observationProtoObservation