CombinationalTest is a class that is used to cross test a few lists of arguments. One example.
More...
#include <unittest.h>
|
| std::function< void()> | func |
CombinationalTest is a class that is used to cross test a few lists of arguments. One example.
CHECK(targetFunc(a, b) == (a+b));
});
test(a, b);
#define CHECK(...)
Definition assert.h:167
CombinationalTest(std::function< void()> func)
Definition unittest.h:336
TestArgs is a class that is used to store the test arguments.
Definition unittest.h:361
This will test the targetFunc with all the combinations of a and b, e.g. (1,4), (1,5), (1,6), (2,4), (2,5) ... etc.
◆ CombinationalTest()
| zeroerr::CombinationalTest::CombinationalTest |
( |
std::function< void()> | func | ) |
|
|
inline |
◆ operator()() [1/2]
template<typename T>
| void zeroerr::CombinationalTest::operator() |
( |
T & | arg | ) |
|
|
inline |
◆ operator()() [2/2]
template<typename T, typename... Args>
| void zeroerr::CombinationalTest::operator() |
( |
T & | arg, |
|
|
Args &... | args ) |
|
inline |
◆ func
| std::function<void()> zeroerr::CombinationalTest::func |
The documentation for this class was generated from the following file: