ZeroErr
载入中...
搜索中...
未找到
fuzztest.h 文件参考
#include "zeroerr/internal/config.h"
#include "zeroerr/unittest.h"
#include "zeroerr/domains/aggregate_of.h"
#include "zeroerr/domains/arbitrary.h"
#include "zeroerr/domains/container_of.h"
#include "zeroerr/domains/element_of.h"
#include "zeroerr/domains/in_range.h"
#include "zeroerr/internal/rng.h"
#include "zeroerr/internal/fuzz_signal.h"
#include <functional>
#include "zeroerr/string.h"
#include <tuple>
#include <type_traits>
#include <vector>
fuzztest.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

类

struct  zeroerr::detail::FunctionDecomposition< Args >
 FunctionDecomposition is a meta function to decompose the function type. The ValueType and numOfArgs will be the result of the decomposition. 更多...
struct  zeroerr::detail::memfun_type< T >
struct  zeroerr::detail::memfun_type< Ret(Class::*)(Args...) const >
struct  zeroerr::IFuzzTest
struct  zeroerr::FuzzTest< TargetFunction, FuncType >
 FuzzTest is a template class to create a fuzz test for the target function. 更多...
struct  zeroerr::FuzzTestWithDomain< TargetFunction, FuncType, Domain, Base >
 FuzzTestWithDomain implements the Base class with the domain passed into. 更多...

命名空间

namespace  zeroerr
namespace  zeroerr::detail

宏定义

#define ZEROERR_CREATE_FUZZ_TEST_FUNC(function, name, ...)
#define FUZZ_TEST_CASE(...)
#define FUZZ_FUNC(func)

类型定义

template<typename T>
using zeroerr::detail::FunctionDecompositionT = decltype(FunctionDecompositionImpl(std::declval<T>()))

函数

template<typename... Args>
FunctionDecomposition< typename std::decay< Args >::type... > zeroerr::detail::FunctionDecompositionImpl (void(*)(Args...))
template<typename... Args>
FunctionDecomposition< typename std::decay< Args >::type... > zeroerr::detail::FunctionDecompositionImpl (std::function< void(Args...)>)
template<typename F>
memfun_type< decltype(&F::operator())>::ret_type zeroerr::detail::FunctionDecompositionImpl (F)
void zeroerr::RunFuzzTest (IFuzzTest &fuzz_test, int seed, int runs, int max_len, int timeout, int len_control)
template<typename T>
FuzzTest< T > zeroerr::FuzzFunction (T func, TestContext *context)
template<typename T>
std::vector< T > zeroerr::ReadCorpusFromDir (zeroerr::String dir)

宏定义说明

◆ FUZZ_FUNC

#define FUZZ_FUNC ( func)
值:
zeroerr::FuzzFunction(func, _ZEROERR_TEST_CONTEXT)
FuzzTest< T > FuzzFunction(T func, TestContext *context)
定义 fuzztest.h:223

◆ FUZZ_TEST_CASE

#define FUZZ_TEST_CASE ( ...)
值:
ZEROERR_CREATE_FUZZ_TEST_FUNC(ZEROERR_NAMEGEN(_zeroerr_testcase), __VA_ARGS__)
#define ZEROERR_NAMEGEN(x)
定义 config.h:110
#define ZEROERR_CREATE_FUZZ_TEST_FUNC(function, name,...)
定义 fuzztest.h:23

◆ ZEROERR_CREATE_FUZZ_TEST_FUNC

#define ZEROERR_CREATE_FUZZ_TEST_FUNC ( function,
name,
... )
值:
ZEROERR_SUPPRESS_COMMON_WARNINGS_PUSH \
static void function(zeroerr::TestContext*); \
static zeroerr::detail::regTest ZEROERR_NAMEGEN(_zeroerr_reg)( \
{name, __FILE__, __LINE__, function, {__VA_ARGS__}}, zeroerr::TestType::fuzz_test); \
ZEROERR_SUPPRESS_COMMON_WARNINGS_POP \
static void function(ZEROERR_UNUSED(zeroerr::TestContext* _ZEROERR_TEST_CONTEXT))
TestContext is a class that holds the test results and reporter context. There are 8 different matric...
定义 unittest.h:89
#define ZEROERR_UNUSED(x)
定义 config.h:360
@ fuzz_test
定义 unittest.h:297
regTest is a class that is used to register the test case. It will be used as global variables and th...
定义 unittest.h:305