Class DiffFuzzReproGuidance
java.lang.Object
edu.berkeley.cs.jqf.fuzz.repro.ReproGuidance
edu.berkeley.cs.jqf.fuzz.difffuzz.DiffFuzzReproGuidance
- All Implemented Interfaces:
DiffFuzzGuidance,Guidance
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiffFuzzReproGuidance(File[] inputFile, File traceDir) DiffFuzzReproGuidance(File[] inputFile, File traceDir, List<Outcome> cmpRes) DiffFuzzReproGuidance(File inputFile, File traceDir) DiffFuzzReproGuidance(File inputFile, File traceDir, List<Outcome> cmpRes) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptOutcome(Outcome out) Accepts the outcome of one trial captured byDiffTrialExecutor.voidsetCompare(Method m) Methods inherited from class edu.berkeley.cs.jqf.fuzz.repro.ReproGuidance
generateCallBack, getBranchesCovered, getCoverage, getInput, handleResult, hasInput, jacocoCheckpoint, observeGeneratedArgs, observeGuidance, setStopOnFailureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.berkeley.cs.jqf.fuzz.guidance.Guidance
beforeRun, generateCallBack, getInput, handleResult, hasInput, observeGeneratedArgs, observeGuidance
-
Field Details
-
cmpTo
-
recentOutcomes
-
-
Constructor Details
-
DiffFuzzReproGuidance
- Throws:
IOException
-
DiffFuzzReproGuidance
public DiffFuzzReproGuidance(File[] inputFile, File traceDir, List<Outcome> cmpRes) throws IOException - Throws:
IOException
-
DiffFuzzReproGuidance
- Throws:
IOException
-
DiffFuzzReproGuidance
public DiffFuzzReproGuidance(File inputFile, File traceDir, List<Outcome> cmpRes) throws IOException - Throws:
IOException
-
-
Method Details
-
setCompare
- Specified by:
setComparein interfaceDiffFuzzGuidance
-
acceptOutcome
Description copied from interface:DiffFuzzGuidanceAccepts the outcome of one trial captured byDiffTrialExecutor.The default rethrows whatever the trial threw, so an exception counts as a failure.
DiffFuzzReproGuidanceoverrides this to compare the outcome against a reference run instead.- Specified by:
acceptOutcomein interfaceDiffFuzzGuidance- Parameters:
out- the captured return value or thrown error- Throws:
Throwable- to fail the trial: a rethrown error or aDiffException
-