Class CoverageChecker.CoverageResult
java.lang.Object
software.amazon.smithy.rulesengine.analysis.CoverageChecker.CoverageResult
- Enclosing class:
- CoverageChecker
A container for a specific condition's coverage result.
-
Constructor Summary
ConstructorDescriptionCoverageResult
(Condition condition, boolean result) Constructs a new coverage result container for the given condition and result. -
Method Summary
Modifier and TypeMethodDescriptionGets the condition that is covered.boolean
Gets if the condition is covered or not.pretty()
Pretty prints this CoverageResult.
-
Constructor Details
-
CoverageResult
Constructs a new coverage result container for the given condition and result.- Parameters:
condition
- the condition being covered.result
- if the condition is covered by test cases or not.
-
-
Method Details
-
getCondition
Gets the condition that is covered.- Returns:
- the condition being covered.
-
getResult
public boolean getResult()Gets if the condition is covered or not.- Returns:
- returns true if the condition is covered, false otherwise.
-
pretty
Pretty prints this CoverageResult.- Returns:
- A pretty representation of the condition and result.
-