Appearance
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
| Name | Description |
|---|---|
baseline | Optional baseline snapshot used only to validate that Format matches current when both are non-null. |
changeMap | Optional changed-line ranges; when and RequireChangedLinesCovered is , a warning is recorded and change obligations are skipped. |
current | The current coverage snapshot built from the report under test. Must not be . |
policy | Threshold and behavior flags. Must not be . |
Returns
A CoverageGateResult containing pass or fail status, violations, and warnings.