|
| class | AggregateOf |
| | AggregateOf is a domain that combines multiple inner domains into a tuple or aggregate type 更多...
|
| |
| class | Arbitrary |
| | Arbitrary is a domain that generates random values of a given type 更多...
|
| |
| class | Arbitrary< bool > |
| |
| class | Arbitrary< const T, 2 > |
| |
| class | Arbitrary< std::pair< T, U >, 1 > |
| |
| class | Arbitrary< std::tuple< T... >, 1 > |
| |
| struct | Arbitrary< T, 0 > |
| |
| class | Arbitrary< T, 1, is_modifiable< T > > |
| |
| class | Arbitrary< T, 2, is_float_point< T > > |
| |
| class | Arbitrary< T, 2, is_signed_int< T > > |
| |
| class | Arbitrary< T, 2, is_string< T > > |
| |
| class | Arbitrary< T, 2, is_unsigned_int< T > > |
| |
| struct | assert_info |
| | This is a one-byte assert info struct, which is used to collect the meta info of an assertion 更多...
|
| |
| struct | AssertionData |
| | AssertionData is a struct that contains all the information of an assertion. It will be thrown as an exception when the assertion failed. 更多...
|
| |
| class | AssociativeContainerOf |
| |
| struct | Benchmark |
| | Benchmark create a core object for configuration of a benchmark. This class is a driver to run multiple times of a benchmark. Each time of a run will generate a row of data. Report will print the data in console. 更多...
|
| |
| struct | BenchResult |
| | BenchResult is a result of running the benchmark. 更多...
|
| |
| struct | BenchState |
| |
| struct | Card |
| | Card defines a display range in the console. 更多...
|
| |
| struct | ColorInit |
| |
| class | CombinationalTest |
| | CombinationalTest is a class that is used to cross test a few lists of arguments. One example 更多...
|
| |
| class | CombinedMatcher |
| |
| class | ConsoleReporter |
| |
| struct | ContainerOfBase |
| | ContainerOf is a domain that generates random containers filled with elements from an inner domain 更多...
|
| |
| class | ContextScope |
| | Template implementation of context scope 更多...
|
| |
| struct | DataBlock |
| |
| class | Decorator |
| |
| struct | deferred_false |
| |
| class | DirectoryLogger |
| |
| class | Domain |
| | Domain class for generating random values of a specific type. 更多...
|
| |
| class | DomainConvertable |
| | DomainConvertable is a base class for domains that can be converted to and from a ValueType 更多...
|
| |
| struct | Duration |
| |
| class | ElementOf |
| | ElementOf is a domain that generates random values from a fixed set of elements 更多...
|
| |
| struct | Expression |
| |
| struct | ExpressionDecomposer |
| |
| struct | ExprResult |
| |
| class | FailureDecorator |
| |
| struct | FileCache |
| |
| class | FileLogger |
| |
| struct | Filters |
| |
| class | FuzzFinishedException |
| |
| struct | FuzzTest |
| | FuzzTest is a template class to create a fuzz test for the target function. 更多...
|
| |
| struct | FuzzTestWithDomain |
| | FuzzTestWithDomain implements the Base class with the domain passed into. 更多...
|
| |
| class | IContextScope |
| | ContextScope is a helper class created in each basic block where you use INFO(). The context scope can has lazy evaluated function F(zeroerr::StringBuffer&) that is called when the assertation is failed 更多...
|
| |
| struct | IFuzzTest |
| |
| class | IMatcher |
| |
| class | IMatcherRef |
| |
| class | InRange |
| | InRange is a domain that generates random values within a specified range 更多...
|
| |
| class | IReporter |
| | IReporter is an interface that is used to report the test results. You can create a new reporter by inheriting this class and implementing the virtual functions. The following events will be called once it happens during testing. 更多...
|
| |
| struct | IRObject |
| | Interface for serializable objects 更多...
|
| |
| struct | last |
| |
| struct | last< T1 > |
| |
| class | Logger |
| |
| struct | LogInfo |
| | LogInfo is a struct to store the meta data of the log message. 更多...
|
| |
| class | LogIterator |
| | LogIterator is a class to iterate the log messages. 更多...
|
| |
| struct | LogMessage |
| | LogMessage is a class to store the log message. 更多...
|
| |
| struct | LogMessageImpl |
| | LogMessageImpl is the implementation of the LogMessage. 更多...
|
| |
| class | LogStream |
| | LogStream is a class to manage the log messages. 更多...
|
| |
| class | NotMatcher |
| |
| class | OStreamLogger |
| |
| struct | PerfCountSet |
| | PerfCountSet is a set of performance counters. 更多...
|
| |
| struct | PerformanceCounter |
| | PerformanceCounter is a class to measure the performance of a function. 更多...
|
| |
| struct | Printer |
| | A functor class Printer for printing a value of any type. 更多...
|
| |
| struct | PushResult |
| |
| struct | rank |
| | rank is a helper class for Printer to define the priority of overloaded functions. 更多...
|
| |
| struct | rank< 0 > |
| |
| class | Rng |
| |
| class | SequenceContainerOf |
| |
| class | SkipDecorator |
| |
| struct | StartWithMatcher |
| |
| class | String |
| |
| class | StringBuffer |
| |
| struct | StyleManager |
| |
| struct | SubCase |
| | SubCase is a class that holds the subcase information. 更多...
|
| |
| class | Table |
| | Table is used to generate a table with configurable style. 更多...
|
| |
| struct | TerminalSize |
| |
| class | TestArgs |
| | TestArgs is a class that is used to store the test arguments. 更多...
|
| |
| struct | TestCase |
| | TestCase is a class that holds the test case information. There are several fields that are used to store the test case information. 更多...
|
| |
| class | TestContext |
| | TestContext is a class that holds the test results and reporter context. There are 8 different matrices that are used to store the test results. 更多...
|
| |
| struct | TestedObjects |
| |
| class | TimeoutDecorator |
| |
| struct | Timestamp |
| |
| struct | UnitTest |
| | UnitTest is a class that holds the test configuration. There are several options that can be set to configure the test. 更多...
|
| |
| class | XmlReporter |
| |
|
| Clock::duration | calcClockResolution (size_t numEvaluations) noexcept |
| |
| Clock::duration | clockResolution () noexcept |
| |
| BenchState * | createBenchState (Benchmark &benchmark) |
| |
| void | destroyBenchState (BenchState *state) |
| |
| size_t | getNumIter (BenchState *state) |
| |
| void | runIteration (BenchState *state) |
| |
| void | moveResult (BenchState *state, zeroerr::String name) |
| |
| | ZEROERR_MUTEX (m) |
| |
| void | disableColorOutput () |
| | Global function to disable colorful output.
|
| |
| void | enableColorOutput () |
| | Global function to enable colorful output.
|
| |
| void | RunFuzzTest (IFuzzTest &fuzz_test, int seed, int runs, int max_len, int timeout, int len_control) |
| |
| void | setLogCustomCallback (LogCustomCallback callback) |
| | set the log custom callback, this can support custom format of the log message
|
| |
| void | setLogLevel (LogSeverity level) |
| | set the log level
|
| |
| void | setLogCategory (const char *categories) |
| | set the log category
|
| |
| void | suspendLog () |
| | suspend the log to flush to the file
|
| |
| void | resumeLog () |
| | resume the log to flush to the file
|
| |
| Printer & | getStdoutPrinter () |
| |
| Printer & | getStderrPrinter () |
| |
| String | operator+ (const String &a, const String &b) |
| |
| zeroerr::String | _rept (unsigned k, zeroerr::String j, Table::Style &) |
| |
| Decorator * | skip (bool isSkip) |
| |
| Decorator * | timeout (float timeout) |
| |
| Decorator * | may_fail (bool isMayFail) |
| |
| Decorator * | should_fail (bool isShouldFail) |
| |
| template<typename Arg > |
| void | doNotOptimizeAway (Arg &&arg) |
| | Makes sure none of the given arguments are optimized away by the compiler.
|
| |
| template<typename... Args> |
| auto | get_last (Args &&... args) -> typename last< Args... >::type |
| | get_last is a function to get the last argument of a variadic template. It is used by DebugExpr.
|
| |
| template<typename... T> |
| auto | DebugExpr (const char *file, unsigned line, const char *func, const char *exprs, T... t) -> typename last< T... >::type |
| | DebugExpr is a function to print any type of variable with its type name. It is used by dbg macro.
|
| |
| template<typename... Inner> |
| AggregateOf< std::tuple< typename Inner::ValueType... >, Inner... > | TupleOf (Inner &&... inner) |
| |
| template<typename K , typename V > |
| AggregateOf< std::pair< typename K::ValueType, typename V::ValueType >, K, V > | PairOf (K &&k, V &&v) |
| |
| template<typename T , typename Inner > |
| std::enable_if< detail::is_associative_container< T >::value, AssociativeContainerOf< T, Inner > >::type | ContainerOf (Inner &&inner) |
| |
| template<typename T , typename Inner > |
| std::enable_if<!detail::is_associative_container< T >::value &&detail::is_container< T >::value, SequenceContainerOf< T, Inner > >::type | ContainerOf (Inner &&inner) |
| |
| template<template< typename, typename... > class T, typename... Inner, typename C = T<typename Inner::ValueType...>> |
| auto | ContainerOf (Inner... inner) -> decltype(ContainerOf< C >(std::move(inner)...)) |
| |
| template<typename... T> |
| ZEROERR_DIAGNOSTIC_NOINLINE zeroerr::String | format (const char *fmt, T &&... args) |
| | Format a string with arguments
|
| |
| template<typename T > |
| FuzzTest< T > | FuzzFunction (T func, TestContext *context) |
| |
| template<typename T > |
| std::vector< T > | ReadCorpusFromDir (zeroerr::String dir) |
| |
| bool | isTerminalOutput (OutputStream stream) |
| |
| TerminalSize | getTerminalSize () |
| |
| template<typename T > |
| std::enable_if< std::is_constructible< zeroerr::String, T >::value, IMatcherRef< zeroerr::String > >::type | start_with (T &&s) |
| |
| template<typename... T> |
| PushResult | log (T &&... args) |
| |
| template<typename... T> |
| PushResult | log (LogStream &stream, T &&... args) |
| |
| template<typename F > |
| ContextScope< F > | MakeContextScope (const F &f) |
| | Helper function to create a context scope
|
| |
| template<typename T > |
| void | PrinterExt (Printer &P, const T &v, unsigned level, const char *lb, rank< 0 >) |
| | PrinterExt is an extension of Printer that allows user to write custom rules for printing.
|
| |
| StringBuffer & | operator<< (StringBuffer &buffer, const Printer &printer) |
| |
| std::ostream & | operator<< (std::ostream &stream, const Printer &printer) |
| |
| StringBuffer & | operator<< (StringBuffer &buffer, std::ios_base &(*manip)(std::ios_base &)) |
| |
| StringBuffer & | operator<< (StringBuffer &buffer, std::ostream &(*manip)(std::ostream &)) |
| |
| template<class T > |
| std::enable_if< std::is_class< T >::value &&!detail::is_string< T >::value &&detail::is_streamable< std::ostream, T >::value, StringBuffer & >::type | operator<< (StringBuffer &buffer, const T &value) |
| |
| template<class T > |
| std::enable_if< std::is_class< typenamestd::decay< T >::type >::value &&!detail::is_string< typenamestd::decay< T >::type >::value &&!detail::is_container< typenamestd::decay< T >::type >::value &&!detail::is_pointer_like< typenamestd::decay< T >::type >::value &&!detail::is_weak_pointer_like< typenamestd::decay< T >::type >::value &&!detail::is_tuple_like< typenamestd::decay< T >::type >::value &&!detail::is_complex< typenamestd::decay< T >::type >::value &&detail::is_streamable< std::ostream, T >::value, void >::type | PrinterExt (Printer &printer, T &&value, unsigned level, const char *lb, rank< 1 >) |
| |
| bool | operator== (const String &a, const String &b) noexcept |
| |
| bool | operator!= (const String &a, const String &b) noexcept |
| |
| bool | operator< (const String &a, const String &b) noexcept |
| |
| bool | operator> (const String &a, const String &b) noexcept |
| |
| bool | operator<= (const String &a, const String &b) noexcept |
| |
| bool | operator>= (const String &a, const String &b) noexcept |
| |
| template<class Stream , class T , typename std::enable_if< std::is_same< typename std::decay< T >::type, String >::value &&!std::is_same< Stream, StringBuffer >::value, int >::type = 0> |
| auto | operator<< (Stream &stream, T &&text) -> decltype(stream.write(text.data(), text.size())) |
| |
| template<class Stream > |
| Stream & | operator>> (Stream &stream, String &text) |
| |
| template<class Stream > |
| bool | getline (Stream &stream, String &text) |
| |