Class Autofuzz
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T1> voidautofuzz(FuzzedDataProvider data, Consumer1<T1> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2> void autofuzz(FuzzedDataProvider data, Consumer2<T1, T2> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3>
voidautofuzz(FuzzedDataProvider data, Consumer3<T1, T2, T3> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3, T4>
voidautofuzz(FuzzedDataProvider data, Consumer4<T1, T2, T3, T4> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3, T4, T5>
voidautofuzz(FuzzedDataProvider data, Consumer5<T1, T2, T3, T4, T5> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,R> R autofuzz(FuzzedDataProvider data, Function1<T1, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, R>
Rautofuzz(FuzzedDataProvider data, Function2<T1, T2, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3, R>
Rautofuzz(FuzzedDataProvider data, Function3<T1, T2, T3, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3, T4, R>
Rautofuzz(FuzzedDataProvider data, Function4<T1, T2, T3, T4, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T1,T2, T3, T4, T5, R>
Rautofuzz(FuzzedDataProvider data, Function5<T1, T2, T3, T4, T5, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.static <T> Tconsume(FuzzedDataProvider data, Class<T> type) Attempts to construct an instance oftypefrom the fuzzer input using only public methods available on the classpath.
-
Method Details
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toFunction1with (partially) specified type variables, e.g.(Function1<String, ?>) String::new.- Returns:
- the return value of
func, ornullifautofuzzfailed to invoke the function.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toFunction2with (partially) specified type variables.- Returns:
- the return value of
func, ornullifautofuzzfailed to invoke the function.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toFunction3with (partially) specified type variables.- Returns:
- the return value of
func, ornullifautofuzzfailed to invoke the function.
-
autofuzz
public static <T1,T2, R autofuzzT3, T4, R> (FuzzedDataProvider data, Function4<T1, T2, T3, T4, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toFunction4with (partially) specified type variables.- Returns:
- the return value of
func, ornullifautofuzzfailed to invoke the function.
-
autofuzz
public static <T1,T2, R autofuzzT3, T4, T5, R> (FuzzedDataProvider data, Function5<T1, T2, T3, T4, T5, R> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toFunction5with (partially) specified type variables.- Returns:
- the return value of
func, ornullifautofuzzfailed to invoke the function.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toConsumer1with explicitly specified type variable.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toConsumer2with (partially) specified type variables.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toConsumer3with (partially) specified type variables.
-
autofuzz
Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toConsumer4with (partially) specified type variables.
-
autofuzz
public static <T1,T2, void autofuzzT3, T4, T5> (FuzzedDataProvider data, Consumer5<T1, T2, T3, T4, T5> func) Attempts to invokefuncwith arguments created automatically from the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to execute
funcin meaningful ways for a number of reasons.May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.func- a method reference for the function to autofuzz. If there are multiple overloads, resolve ambiguities by explicitly casting toConsumer5with (partially) specified type variables.
-
consume
Attempts to construct an instance oftypefrom the fuzzer input using only public methods available on the classpath.Note: This function is inherently heuristic and may fail to return meaningful values for a variety of reasons.
May throw (unchecked) any
Throwablethrown byfuncor anAutofuzzConstructionExceptionif autofuzz failed to construct the arguments for the call.- Parameters:
data- theFuzzedDataProviderinstance provided tofuzzerTestOneInput.type- theClassto construct an instance of.- Returns:
- an instance of
typeconstructed from the fuzzer input, ornullif autofuzz failed to create an instance.
-