net.jqwik.engine.hooks.statistics.StatisticsCollectorImpl Maven / Gradle / Ivy
package net.jqwik.engine.hooks.statistics;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import org.opentest4j.*;
import net.jqwik.api.*;
import net.jqwik.api.statistics.*;
import net.jqwik.api.statistics.StatisticsCoverage.*;
import net.jqwik.engine.facades.*;
public class StatisticsCollectorImpl implements StatisticsCollector {
public static final Object COLLECTORS_ID = Tuple.of(StatisticsCollectorImpl.class, "collectors");
private final Map, Integer> counts = new HashMap<>();
private final List> coverageCheckers = new ArrayList<>();
private final String label;
private List statisticsEntries = null;
public StatisticsCollectorImpl(String label) {
this.label = label;
}
@Override
public StatisticsCollector collect(Object... values) {
ensureAtLeastOneParameter(values);
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy