Skip to content

CoverageSnapshot Class ​

Definition ​

Provides a stable, gate-oriented view of a normalized CoverageReport for one coverage format.

  • Namespace: JASE.TestAnalysis
  • Assembly: JASE.TestAnalysis.dll

Constructors ​

NameDescription
CoverageSnapshot()

Fields ​

NameDescription
RollupVersionDefines the schema version for FromCoverageReport rollups and line indexing.

Properties ​

NameDescription
ClassesGets the ordered list of class rollups.
FormatGets the original CoverageFormat for the snapshot.
IdentityNameGets the report identity display name when present on the source CoverageReport.
LinesByKeyGets instrumented lines keyed by BuildLineKey for intersection with a CoverageChangeMap.
ModulesGets the ordered list of module or package rollups.

Methods ​

NameDescription
string BuildLineKey(string normalizedPath, int lineNumber)Builds the dictionary key for a normalized path and 1-based line number.
CoverageSnapshot FromCoverageReport(CoverageReport report)Builds a CoverageSnapshot from a normalized CoverageReport.
string NormalizePath(string path)Normalizes a file path for comparison with change maps and BuildLineKey.

Remarks ​

Module and class rollups are taken from CoverageSummary comparable fields on the report. The LinesByKey index merges method and class-level points; duplicate keys take the maximum hit count.

Increment RollupVersion when changing how lines are keyed or aggregated so consumers can detect semantic drift between tool versions.