Skip to content

Evaluate Method ​

Definition ​

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

CoverageGateResult Evaluate(CoverageSnapshot baseline, CoverageSnapshot current, CoverageGatePolicy policy, CoverageChangeMap changeMap = null) ​

csharp
CoverageGateResult Evaluate(CoverageSnapshot baseline, CoverageSnapshot current, CoverageGatePolicy policy, CoverageChangeMap changeMap = null)

Evaluates the supplied policy against the current snapshot, optionally intersecting a change map.

Parameters ​

NameDescription
baselineOptional baseline snapshot used only to validate that Format matches current when both are non-null.
changeMapOptional changed-line ranges; when and RequireChangedLinesCovered is , a warning is recorded and change obligations are skipped.
currentThe current coverage snapshot built from the report under test. Must not be .
policyThreshold and behavior flags. Must not be .

Returns ​

A CoverageGateResult containing pass or fail status, violations, and warnings.