Class CoverageChecker
java.lang.Object
software.amazon.smithy.rulesengine.analysis.CoverageChecker
Analyzer for determining coverage of a rule-set.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A container for a specific condition's coverage result. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAnalyze coverage for the rule-set, providing results when coverage is found.void
evaluateInput
(Map<Identifier, Value> input) Evaluates the rule-set with the given inputs to determine rule coverage.void
evaluateTestCase
(EndpointTestCase testCase) Evaluate the rule-set using the given test case to determine rule coverage.
-
Constructor Details
-
CoverageChecker
-
-
Method Details
-
evaluateInput
Evaluates the rule-set with the given inputs to determine rule coverage.- Parameters:
input
- the map parameters and inputs to test coverage.
-
evaluateTestCase
Evaluate the rule-set using the given test case to determine rule coverage.- Parameters:
testCase
- the test case to evaluate.
-
checkCoverage
Analyze coverage for the rule-set, providing results when coverage is found.- Returns:
- returns a stream of
CoverageChecker.CoverageResult
.
-