|
BALL
1.5.0
|
#include <BALL/CONCEPT/autoDeletable.h>#include <BALL/SYSTEM/file.h>#include <BALL/DATATYPE/regularExpression.h>#include <chrono>#include <cmath>#include <list>#include <string>#include <thread>Go to the source code of this file.
Namespaces | |
| TEST | |
Macros | |
| #define | PRECISION(a) TEST::precision = (a); |
| #define | START_TEST(class_name) |
| #define | END_TEST |
| #define | CHECK(test_name) |
| #define | STATUS(message) |
| #define | RESULT |
| #define | SLEEP_FOR_MSECS(ms) std::this_thread::sleep_for(std::chrono::milliseconds(ms)) |
| #define | NEW_TMP_FILE(filename) |
| #define | NEW_TMP_FILE_WITH_SUFFIX(filename, suffix) |
| #define | TEST_REAL_EQUAL(a, b) |
| #define | TEST_EQUAL(a, b) |
| #define | TEST_NOT_EQUAL(a, b) |
| #define | TEST_EXCEPTION(exception_type, command) |
| #define | TEST_PRECONDITION_EXCEPTION(command) |
| #define | ABORT_IF(condition) if (condition) break; |
| #define | TEST_FILE(filename, templatename) |
| #define | TEST_FILE_REGEXP(filename, templatename) |
| #define | CAPTURE_OUTPUT_LEVEL(level) |
| #define | CAPTURE_OUTPUT_LEVEL_RANGE(minlevel, maxlevel) |
| #define | COMPARE_OUTPUT(text) |
Functions | |
| template<class T > | |
| void | TEST::printErrorMessage (T &, bool subtest) |
| template<> | |
| void | TEST::printErrorMessage (std::exception &e, bool subtest) |
| template<> | |
| void | TEST::printErrorMessage (BALL::Exception::GeneralException &e, bool subtest) |
| template<> | |
| void | TEST::printErrorMessage (BALL::Exception::FileNotFound &e, bool subtest) |
| template<class T > | |
| void | TEST::printException (T e, bool subtest) |
Variables | |
| int | TEST::verbose = 0 |
| bool | TEST::all_tests = true |
| bool | TEST::test = true |
| bool | TEST::this_test |
| string | TEST::exception_name = "" |
| const char * | TEST::version_string = BALL_RELEASE_STRING |
| bool | TEST::newline = false |
| list< string > | TEST::tmp_file_list |
| std::ifstream | TEST::infile |
| std::ifstream | TEST::templatefile |
| bool | TEST::equal_files |
| double | TEST::precision = 1e-6 |
| #define TEST_PRECONDITION_EXCEPTION | ( | command | ) |
Definition at line 494 of file classTest.h.