Class CoverageChecker
- java.lang.Object
-
- software.amazon.smithy.rulesengine.analysis.CoverageChecker
-
public final class CoverageChecker extends java.lang.Object
Analyzer for determining coverage of a rule-set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageChecker.CoverageResult
A container for a specific condition's coverage result.
-
Constructor Summary
Constructors Constructor Description CoverageChecker(EndpointRuleSet ruleSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<CoverageChecker.CoverageResult>
checkCoverage()
Analyze coverage for the rule-set, providing results when coverage is found.void
evaluateInput(java.util.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 Detail
-
CoverageChecker
public CoverageChecker(EndpointRuleSet ruleSet)
-
-
Method Detail
-
evaluateInput
public void evaluateInput(java.util.Map<Identifier,Value> input)
Evaluates the rule-set with the given inputs to determine rule coverage.- Parameters:
input
- the map parameters and inputs to test coverage.
-
evaluateTestCase
public void evaluateTestCase(EndpointTestCase testCase)
Evaluate the rule-set using the given test case to determine rule coverage.- Parameters:
testCase
- the test case to evaluate.
-
checkCoverage
public java.util.stream.Stream<CoverageChecker.CoverageResult> checkCoverage()
Analyze coverage for the rule-set, providing results when coverage is found.- Returns:
- returns a stream of
CoverageChecker.CoverageResult
.
-
-