Package edu.berkeley.cs.jqf.fuzz.ei
Class ExecutionIndexingGuidance.MappedSeedInput
java.lang.Object
edu.berkeley.cs.jqf.fuzz.ei.ZestGuidance.Input<ExecutionIndex>
edu.berkeley.cs.jqf.fuzz.ei.ExecutionIndexingGuidance.MappedInput
edu.berkeley.cs.jqf.fuzz.ei.ExecutionIndexingGuidance.MappedSeedInput
- Enclosing class:
- ExecutionIndexingGuidance
public class ExecutionIndexingGuidance.MappedSeedInput
extends ExecutionIndexingGuidance.MappedInput
-
Field Summary
Fields inherited from class edu.berkeley.cs.jqf.fuzz.ei.ExecutionIndexingGuidance.MappedInput
executed, orderedKeys, valuesMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgc()Trims the input map of all keys that were never actually requested since its construction.intgetOrGenerateFresh(ExecutionIndex key, Random random) Retrieve a value for an execution index if mapped, else generate a fresh value.Methods inherited from class edu.berkeley.cs.jqf.fuzz.ei.ExecutionIndexingGuidance.MappedInput
fuzz, fuzz, getValueAtKey, iterator, setValueAtKey, sizeMethods inherited from class edu.berkeley.cs.jqf.fuzz.ei.ZestGuidance.Input
isFavored, sampleGeometric, setFavoredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MappedSeedInput
- Throws:
IOException
-
-
Method Details
-
getOrGenerateFresh
Description copied from class:ExecutionIndexingGuidance.MappedInputRetrieve a value for an execution index if mapped, else generate a fresh value.- Overrides:
getOrGenerateFreshin classExecutionIndexingGuidance.MappedInput- Parameters:
key- the execution index of the trace event requesting a new byterandom- the PRNG- Returns:
- the value to return to the quickcheck-like generator
-
gc
public void gc()Description copied from class:ExecutionIndexingGuidance.MappedInputTrims the input map of all keys that were never actually requested since its construction.Although this operation mutates the underlying object, the effect should not be externally visible (at least as long as the test executions are deterministic).
- Overrides:
gcin classExecutionIndexingGuidance.MappedInput
-