ZeroErr
|
FuzzTest is a template class to create a fuzz test for the target function. More...
#include <fuzztest.h>
Public Types | |
using | ValueType = typename FuncType::ValueType |
template<typename... T> | |
using | FuzzTestWithDomainType = FuzzTestWithDomain< TargetFunction, FuncType, AggregateOf< std::tuple< typename T::ValueType... >, T... > > |
Public Member Functions | |
FuzzTest (TargetFunction func, TestContext *context) | |
FuzzTest (const FuzzTest &other) | |
template<typename... T> | |
FuzzTestWithDomainType< T... > | WithDomains (AggregateOf< std::tuple< typename T::ValueType... >, T... > domain) |
template<typename... T> | |
FuzzTestWithDomainType< T... > | WithDomains (T &&... domains) |
FuzzTest & | WithSeeds (std::vector< ValueType > _seeds) |
virtual void | Run (int=1000, int=0) |
virtual void | RunOneTime (const uint8_t *, size_t) |
virtual std::string | MutateData (const uint8_t *, size_t, size_t, unsigned int) |
Public Member Functions inherited from zeroerr::IFuzzTest | |
bool | should_stop () |
Public Attributes | |
TargetFunction | func |
TestContext * | context |
std::vector< ValueType > | seeds |
Public Attributes inherited from zeroerr::IFuzzTest | |
int | count = 0 |
int | max_count = 0 |
FuzzTest is a template class to create a fuzz test for the target function.
TargetFunction | The target function to fuzz. |
FuncType | is the decomposition result of the target function. |
using zeroerr::FuzzTest< TargetFunction, FuncType >::FuzzTestWithDomainType = FuzzTestWithDomain<TargetFunction, FuncType, AggregateOf<std::tuple<typename T::ValueType...>, T...> > |
using zeroerr::FuzzTest< TargetFunction, FuncType >::ValueType = typename FuncType::ValueType |
|
inline |
|
inline |
|
inlinevirtual |
Implements zeroerr::IFuzzTest.
|
inlinevirtual |
Implements zeroerr::IFuzzTest.
|
inlinevirtual |
Implements zeroerr::IFuzzTest.
|
inline |
T | The domain type to use. |
|
inline |
T | The domain type to use. This function will decompose the domain type and use tuple to represent the list of domains. The previous function is matched in this call. |
|
inline |
TestContext* zeroerr::FuzzTest< TargetFunction, FuncType >::context |
TargetFunction zeroerr::FuzzTest< TargetFunction, FuncType >::func |
std::vector<ValueType> zeroerr::FuzzTest< TargetFunction, FuncType >::seeds |