Helper functions for executable tests. More...
#include "inc/util/output.h"#include "inc/util/terminator.h"#include "inc/util/vectors.h"#include "inc/util/envvars.h"#include "inc/util/log.h"
Include dependency graph for test.h:
This graph shows which files directly or indirectly include this file:Namespaces | |
| namespace | syten |
| Syten namespace. | |
| namespace | syten::Test |
| Helper functions for executables in test/. | |
Macros | |
| #define | SYTEN_TEST |
Introduces the Test namespace into the current scope and calls initArgs() with argc, argv. More... | |
Functions | |
| void | syten::Test::initArgs (int argc_, char **argv_) |
Initialise binary_name with content from argv[0], if possible. More... | |
| template<typename... Args> | |
| void | syten::Test::log (Args &&... args) |
| Write logging information to stderr. More... | |
| template<typename... Args> | |
| void | syten::Test::logErr (Args &&... args) |
| Write logging information to stderr, formatted as an error. More... | |
Variables | |
| std::string | syten::Test::binary_name = "unknown" |
| Binary name of the current executable, used as prefix for logging output. More... | |
Helper functions for executable tests.
We need log() to be inline for the templates and unit only for initArgs() doesn't make all that much sense.