Class WireMockCoverageCollector

Namespace
ProtoTest.WireMock
Assembly
ProtoTest.WireMock.dll

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

targetName string

Properties

Category

public override string Category { get; }

Property Value

string

Methods

CanCollect(ProtoObservation)

Determines whether this collector accepts an observation.

public override bool CanCollect(ProtoObservation observation)

Parameters

observation ProtoObservation

Returns

bool

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

observation ProtoObservation