TestimoX

API Reference

Class

CrosswalkService

Namespace TestimoX.Baselines.Crosswalk
Assembly TestimoX
Modifiers static

Resolves a TestimoX rule to vendor baselines and documentation sources (PingCastle/PurpleKnight) using inline mappings (WithCrosswalk) and/or CrosswalkCatalog JSON. Supplies models for reports/CLI. This service is implemented as a partial static class split across focused files.

Inheritance

  • Object
  • CrosswalkService

Methods

public static IReadOnlyList<GapItem> BaselineGaps() #
Returns: IReadOnlyList<GapItem>

Returns unreferenced baseline controls (present in vendor baselines but not used by any rule crosswalk).

public static RuleCrosswalkReport Build(String testimoRuleName) #
Returns: RuleCrosswalkReport

Builds a crosswalk report for a rule including baseline matches, docs and coverage.

Parameters

testimoRuleName System.String requiredposition: 0
BuildDocs 2 overloads
public static IReadOnlyList<CrosswalkDocRow> BuildDocs(RuleCrosswalkReport report) #
Returns: IReadOnlyList<CrosswalkDocRow>

Builds related documentation rows (PingCastle/PurpleKnight) for a rule.

Parameters

testimoRuleName System.String requiredposition: 0
BuildDocs(TestimoX.Baselines.Crosswalk.RuleCrosswalkReport report) #

Builds related documentation rows (PingCastle/PurpleKnight) from an existing report.

Parameters

report TestimoX.Baselines.Crosswalk.RuleCrosswalkReport required
BuildMatches 2 overloads
public static IReadOnlyList<CrosswalkMatchRow> BuildMatches(RuleCrosswalkReport report) #
Returns: IReadOnlyList<CrosswalkMatchRow>

Builds rows describing how each vendor control matched the rule.

Parameters

testimoRuleName System.String requiredposition: 0
BuildMatches(TestimoX.Baselines.Crosswalk.RuleCrosswalkReport report) #

Builds rows describing how each vendor control matched the rule from an existing report.

Parameters

report TestimoX.Baselines.Crosswalk.RuleCrosswalkReport required
public static CoverageRow Coverage(String ruleName) #
Returns: CoverageRow

Computes coverage glyphs by comparing the rule’s anchors with loaded baselines and docs.

Parameters

ruleName System.String requiredposition: 0
public static IReadOnlyList<GapItem> DocGaps() #
Returns: IReadOnlyList<GapItem>

Returns unreferenced documentation entries (PingCastle/PurpleKnight) not referenced by any rule crosswalk.

GetDocTitle(System.String arg1, System.String arg2) #

Resolve a human-friendly document title from typed enums/maps. Avoids runtime JSON.

Parameters

arg1 System.String required
arg2 System.String required
NormalizeUnifiedAnchorNoScope(System.String arg1) #

Normalizes a unified anchor into a scope-less canonical form suitable for indexing.

Parameters

arg1 System.String required
public static Void WarmUp() #
Returns: Void

Preloads crosswalk indexes so report generation does not pay the full cold-start cost at the end of a run. Safe to call multiple times.