Struct ProtoCoverageUnitPath

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

A coverage unit and the path that names it in its report.

public readonly record struct ProtoCoverageUnitPath : IEquatable<ProtoCoverageUnitPath>
Implements
Inherited Members
Extension Methods

Constructors

ProtoCoverageUnitPath(ProtoReportItem, string)

A coverage unit and the path that names it in its report.

public ProtoCoverageUnitPath(ProtoReportItem Unit, string Path)

Parameters

Unit ProtoReportItem
Path string

Fields

Separator

Separates a nested unit's identifier from its parent's in a path.

public const string Separator = " › "

Field Value

string

Properties

Path

public string Path { get; init; }

Property Value

string

Unit

public ProtoReportItem Unit { get; init; }

Property Value

ProtoReportItem

Methods

Combine(string?, string?, string)

A child's path: its identifier under its parent's path, or the identifier alone when the collector already qualified it with the parent's (Query.users under Query).

public static string Combine(string? parentPath, string? parentIdentifier, string identifier)

Parameters

parentPath string
parentIdentifier string
identifier string

Returns

string