Appearance
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
| Name | Description |
|---|---|
CoverageSnapshot() |
Fields
| Name | Description |
|---|---|
RollupVersion | Defines the schema version for FromCoverageReport rollups and line indexing. |
Properties
| Name | Description |
|---|---|
Classes | Gets the ordered list of class rollups. |
Format | Gets the original CoverageFormat for the snapshot. |
IdentityName | Gets the report identity display name when present on the source CoverageReport. |
LinesByKey | Gets instrumented lines keyed by BuildLineKey for intersection with a CoverageChangeMap. |
Modules | Gets the ordered list of module or package rollups. |
Methods
| Name | Description |
|---|---|
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.