All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.engine.properties.shrinking.NullShrinkingSequence Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.engine.properties.shrinking;

import java.util.function.*;

import net.jqwik.api.*;

public class NullShrinkingSequence implements ShrinkingSequence {

	private final Shrinkable shrinkable;

	public NullShrinkingSequence(Shrinkable shrinkable) {
		this.shrinkable = shrinkable;
	}

	@Override
	public boolean next(Runnable count, Consumer> falsifiedReporter) {
		return false;
	}

	@Override
	public void init(FalsificationResult initialCurrent) {
	}

	@Override
	public FalsificationResult current() {
		return FalsificationResult.falsified(shrinkable);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy