ZeroErr
载入中...
搜索中...
未找到
zeroerr::FuzzTest< TargetFunction, FuncType > 模板结构体 参考

FuzzTest is a template class to create a fuzz test for the target function. 更多...

#include <fuzztest.h>

类 zeroerr::FuzzTest< TargetFunction, FuncType > 继承关系图:
zeroerr::FuzzTest< TargetFunction, FuncType > 的协作图:

Public 类型

using ValueType = typename FuncType::ValueType
 
template<typename... T>
using FuzzTestWithDomainType = FuzzTestWithDomain< TargetFunction, FuncType, AggregateOf< std::tuple< typename T::ValueType... >, T... > >
 

Public 成员函数

 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)
 
FuzzTestWithSeeds (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 成员函数 继承自 zeroerr::IFuzzTest
bool should_stop ()
 

Public 属性

TargetFunction func
 
TestContextcontext
 
std::vector< ValueTypeseeds
 
- Public 属性 继承自 zeroerr::IFuzzTest
int count = 0
 
int max_count = 0
 

详细描述

template<typename TargetFunction, typename FuncType>
struct zeroerr::FuzzTest< TargetFunction, FuncType >

FuzzTest is a template class to create a fuzz test for the target function.

模板参数
TargetFunctionThe target function to fuzz.
FuncTypeis the decomposition result of the target function.

成员类型定义说明

◆ FuzzTestWithDomainType

template<typename TargetFunction , typename FuncType >
template<typename... T>
using zeroerr::FuzzTest< TargetFunction, FuncType >::FuzzTestWithDomainType = FuzzTestWithDomain<TargetFunction, FuncType, AggregateOf<std::tuple<typename T::ValueType...>, T...> >

◆ ValueType

template<typename TargetFunction , typename FuncType >
using zeroerr::FuzzTest< TargetFunction, FuncType >::ValueType = typename FuncType::ValueType

构造及析构函数说明

◆ FuzzTest() [1/2]

template<typename TargetFunction , typename FuncType >
zeroerr::FuzzTest< TargetFunction, FuncType >::FuzzTest ( TargetFunction  func,
TestContext context 
)
inline

◆ FuzzTest() [2/2]

template<typename TargetFunction , typename FuncType >
zeroerr::FuzzTest< TargetFunction, FuncType >::FuzzTest ( const FuzzTest< TargetFunction, FuncType > &  other)
inline

成员函数说明

◆ MutateData()

template<typename TargetFunction , typename FuncType >
virtual std::string zeroerr::FuzzTest< TargetFunction, FuncType >::MutateData ( const uint8_t *  ,
size_t  ,
size_t  ,
unsigned int   
)
inlinevirtual

实现了 zeroerr::IFuzzTest.

◆ Run()

template<typename TargetFunction , typename FuncType >
virtual void zeroerr::FuzzTest< TargetFunction, FuncType >::Run ( int  = 1000,
int  = 0 
)
inlinevirtual

实现了 zeroerr::IFuzzTest.

◆ RunOneTime()

template<typename TargetFunction , typename FuncType >
virtual void zeroerr::FuzzTest< TargetFunction, FuncType >::RunOneTime ( const uint8_t *  ,
size_t   
)
inlinevirtual

实现了 zeroerr::IFuzzTest.

◆ WithDomains() [1/2]

template<typename TargetFunction , typename FuncType >
template<typename... T>
FuzzTestWithDomainType< T... > zeroerr::FuzzTest< TargetFunction, FuncType >::WithDomains ( AggregateOf< std::tuple< typename T::ValueType... >, T... >  domain)
inline
模板参数
TThe domain type to use.

◆ WithDomains() [2/2]

template<typename TargetFunction , typename FuncType >
template<typename... T>
FuzzTestWithDomainType< T... > zeroerr::FuzzTest< TargetFunction, FuncType >::WithDomains ( T &&...  domains)
inline
模板参数
TThe 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.

◆ WithSeeds()

template<typename TargetFunction , typename FuncType >
FuzzTest & zeroerr::FuzzTest< TargetFunction, FuncType >::WithSeeds ( std::vector< ValueType _seeds)
inline

类成员变量说明

◆ context

template<typename TargetFunction , typename FuncType >
TestContext* zeroerr::FuzzTest< TargetFunction, FuncType >::context

◆ func

template<typename TargetFunction , typename FuncType >
TargetFunction zeroerr::FuzzTest< TargetFunction, FuncType >::func

◆ seeds

template<typename TargetFunction , typename FuncType >
std::vector<ValueType> zeroerr::FuzzTest< TargetFunction, FuncType >::seeds

该结构体的文档由以下文件生成: