Class InputStreamGenerator
- java.lang.Object
-
- com.pholser.junit.quickcheck.generator.Generator<InputStream>
-
- edu.berkeley.cs.jqf.fuzz.junit.quickcheck.InputStreamGenerator
-
- All Implemented Interfaces:
Gen<InputStream>
,Shrink<InputStream>
public class InputStreamGenerator extends Generator<InputStream>
Lazy provider of bytes from an input stream. This is useful when you want the parameter sequence to be exactly equal to the raw input, such as when fuzzing with AFL. Use this only with AFL-like front-ends, which return bytes from a fixed-size file. This generator may not work properly with front-ends like Zest that generate fresh values at the end of a parameter sequence, since that would make the InputStream infinitely long.- Author:
- Rohan Padhye
-
-
Constructor Summary
Constructors Constructor Description InputStreamGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
generate(SourceOfRandomness sourceOfRandomness, GenerationStatus generationStatus)
-
Methods inherited from class com.pholser.junit.quickcheck.generator.Generator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, doShrink, gen, gen, hasComponents, magnitude, narrow, numberOfNeededComponents, provide, shrink, types
-
-
-
-
Method Detail
-
generate
public InputStream generate(SourceOfRandomness sourceOfRandomness, GenerationStatus generationStatus)
-
-