Package net.jqwik.api.statistics
Schnittstelle StatisticsCoverage
@API(status=MAINTAINED,
since="1.4.0")
public interface StatisticsCoverage
Intermediate object to provide statistics coverage checking capabilities
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungSelect a specific values set for coverage checking.checkPattern
(String regex) Match collected values against a regular expression.checkQuery
(Predicate<? super List<?>> query) Execute a query for coverage checking.
-
Methodendetails
-
check
Select a specific values set for coverage checking.- Parameter:
values
- Can be anything. Must be equal to the values used in Statistics.collect(Object...)
-
checkQuery
Execute a query for coverage checking.- Parameter:
query
- APredicate
that takes the collected values as parameter and returns true if the specific values shall be counted.
-
checkPattern
@API(status=EXPERIMENTAL, since="1.7.1") StatisticsCoverage.CoverageChecker checkPattern(String regex) Match collected values against a regular expression. Count all values that match.Values must be instances of type of CharSequence, e.g. String or StringBuffer. Values of other types never match.
- Parameter:
regex
- A regular expression
-