com.pholser.junit.quickcheck.generator
Interface GenerationStatus

All Known Implementing Classes:
GenerationContext

public interface GenerationStatus

Generators are fed instances of this interface on each generation so that, if they choose, the generators can use these instances to influence the results of a generation for a particular theory parameter.


Method Summary
 int attempts()
           
 int size()
           
 

Method Detail

size

int size()
Returns:
an arbitrary "size" parameter; this value increases for every successful generation

attempts

int attempts()
Returns:
how many attempts have been made to generate a value for a theory parameter; generally greater than or equal to size().


Copyright © 2013. All Rights Reserved.