Class CoverageChecker

java.lang.Object
software.amazon.smithy.rulesengine.analysis.CoverageChecker

public final class CoverageChecker extends Object
Analyzer for determining coverage of a rule-set.
  • Constructor Details

  • Method Details

    • evaluateInput

      public void evaluateInput(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 Stream<CoverageChecker.CoverageResult> checkCoverage()
      Analyze coverage for the rule-set, providing results when coverage is found.
      Returns:
      returns a stream of CoverageChecker.CoverageResult.