Class ProtoRunGateContext
The evidence a Run gate evaluates: everything the run's collectors and report sources produced, whatever kind. Coverage, findings, metrics and observations all arrive as ProtoReportItem.
public sealed class ProtoRunGateContext
- Inheritance
-
ProtoRunGateContext
- Inherited Members
- Extension Methods
Constructors
ProtoRunGateContext(IReadOnlyList<ProtoReportItem>)
public ProtoRunGateContext(IReadOnlyList<ProtoReportItem> items)
Parameters
itemsIReadOnlyList<ProtoReportItem>
Properties
Items
Gets every item the run collected.
public IReadOnlyList<ProtoReportItem> Items { get; }
Property Value
Methods
ForTarget(string)
Returns the items of one target, including nested items.
public IEnumerable<ProtoReportItem> ForTarget(string targetName)
Parameters
targetNamestring
Returns
InCategory(string)
Returns the items in one category, including nested items.
public IEnumerable<ProtoReportItem> InCategory(string category)
Parameters
categorystring
Returns
ItemsOfKind(string)
Returns the items of one kind, including nested items; ProtoReportItemKinds names the core kinds. Items are flattened exactly as coverage summaries flatten them.
public IEnumerable<ProtoReportItem> ItemsOfKind(string kind)
Parameters
kindstring
Returns
WithStatus(ProtoReportStatus)
Returns the items with one status, including nested items.
public IEnumerable<ProtoReportItem> WithStatus(ProtoReportStatus status)
Parameters
statusProtoReportStatus