libept
|
Classes | |
struct | Actual |
struct | ActualCString |
struct | ActualDouble |
struct | ActualFunction |
struct | ActualStdString |
struct | Fixture |
Base class for test fixtures. More... | |
struct | FixtureTestCase |
Test case that includes a fixture. More... | |
struct | LocationInfo |
Add information to the test backtrace for the tests run in the current scope. More... | |
struct | SimpleTestController |
Simple default implementation of TestController. More... | |
struct | TestCase |
Test case collecting several test methods, and self-registering with the singleton instance of TestRegistry. More... | |
struct | TestCaseResult |
Result of running a whole test case. More... | |
struct | TestController |
Abstract interface for the objects that supervise test execution. More... | |
struct | TestFailed |
Exception raised when a test assertion fails, normally by Location::fail_test. More... | |
struct | TestMethod |
Test method information. More... | |
struct | TestMethodResult |
Result of running a test method. More... | |
struct | TestRegistry |
Test registry. More... | |
struct | TestStack |
struct | TestStackFrame |
Information about one stack frame in the test execution stack. More... | |
Functions | |
void | assert_startswith (const std::string &actual, const std::string &expected) |
Ensure that the string actual starts with expected. More... | |
void | assert_endswith (const std::string &actual, const std::string &expected) |
Ensure that the string actual ends with expected. More... | |
void | assert_contains (const std::string &actual, const std::string &expected) |
Ensure that the string actual contains expected. More... | |
void | assert_not_contains (const std::string &actual, const std::string &expected) |
Ensure that the string actual does not contain expected. More... | |
void | assert_re_matches (const std::string &actual, const std::string &expected) |
Ensure that the string actual matches the extended regular expression expected. More... | |
void | assert_not_re_matches (const std::string &actual, const std::string &expected) |
Ensure that the string actual does not match the extended regular expression expected. More... | |
void | assert_true (std::nullptr_t actual) |
void | assert_false (std::nullptr_t actual) |
template<typename A > | |
void | assert_true (const A &actual) |
Test function that ensures that the actual value is true. More... | |
template<typename A > | |
void | assert_false (const A &actual) |
Test function that ensures that the actual value is false. More... | |
template<typename A , typename E > | |
void | assert_equal (const A &actual, const E &expected) |
Test function that ensures that the actual value is the same as a reference one. More... | |
template<typename A , typename E > | |
void | assert_not_equal (const A &actual, const E &expected) |
Test function that ensures that the actual value is different than a reference one. More... | |
template<typename A , typename E > | |
void | assert_less (const A &actual, const E &expected) |
Ensure that the actual value is less than the reference value. More... | |
template<typename A , typename E > | |
void | assert_less_equal (const A &actual, const E &expected) |
Ensure that the actual value is less or equal than the reference value. More... | |
template<typename A , typename E > | |
void | assert_greater (const A &actual, const E &expected) |
Ensure that the actual value is greater than the reference value. More... | |
template<typename A , typename E > | |
void | assert_greater_equal (const A &actual, const E &expected) |
Ensure that the actual value is greather or equal than the reference value. More... | |
template<typename A > | |
Actual< A > | actual (const A &actual) |
ActualCString | actual (const char *actual) |
ActualCString | actual (char *actual) |
ActualStdString | actual (const std::string &actual) |
ActualDouble | actual (double actual) |
ActualFunction | actual_function (std::function< void()> actual) |
|
inline |
Referenced by assert_false(), assert_true(), register_tests(), and ept::tests::ActualFunction::throws().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void ept::tests::assert_contains | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual contains expected.
References ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::contains(), and ept::tests::ActualStdString::contains().
void ept::tests::assert_endswith | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual ends with expected.
References ept::str::endswith(), and ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::endswith(), and ept::tests::ActualStdString::endswith().
void ept::tests::assert_equal | ( | const A & | actual, |
const E & | expected | ||
) |
Test function that ensures that the actual value is the same as a reference one.
Referenced by ept::tests::Actual< std::function< void()> >::operator==().
void ept::tests::assert_false | ( | const A & | actual | ) |
Test function that ensures that the actual value is false.
References assert_false().
void ept::tests::assert_false | ( | std::nullptr_t | actual | ) |
References actual(), and ept::tests::TestFailed::TestFailed().
Referenced by assert_false(), ept::tests::Actual< std::function< void()> >::isfalse(), and ept::tests::ActualCString::isfalse().
void ept::tests::assert_greater | ( | const A & | actual, |
const E & | expected | ||
) |
Ensure that the actual value is greater than the reference value.
Referenced by ept::tests::Actual< std::function< void()> >::operator>().
void ept::tests::assert_greater_equal | ( | const A & | actual, |
const E & | expected | ||
) |
Ensure that the actual value is greather or equal than the reference value.
References assert_contains(), assert_endswith(), assert_not_contains(), assert_not_re_matches(), assert_re_matches(), and assert_startswith().
Referenced by ept::tests::Actual< std::function< void()> >::operator>=().
void ept::tests::assert_less | ( | const A & | actual, |
const E & | expected | ||
) |
Ensure that the actual value is less than the reference value.
Referenced by ept::tests::Actual< std::function< void()> >::operator<().
void ept::tests::assert_less_equal | ( | const A & | actual, |
const E & | expected | ||
) |
Ensure that the actual value is less or equal than the reference value.
Referenced by ept::tests::Actual< std::function< void()> >::operator<=().
void ept::tests::assert_not_contains | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual does not contain expected.
References ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::not_contains(), and ept::tests::ActualStdString::not_contains().
void ept::tests::assert_not_equal | ( | const A & | actual, |
const E & | expected | ||
) |
Test function that ensures that the actual value is different than a reference one.
Referenced by ept::tests::Actual< std::function< void()> >::operator!=().
void ept::tests::assert_not_re_matches | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual does not match the extended regular expression expected.
The syntax is that of extended regular expression (see man regex(7) ).
References ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::not_matches(), and ept::tests::ActualStdString::not_matches().
void ept::tests::assert_re_matches | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual matches the extended regular expression expected.
The syntax is that of extended regular expression (see man regex(7) ).
References ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::matches(), and ept::tests::ActualStdString::matches().
void ept::tests::assert_startswith | ( | const std::string & | actual, |
const std::string & | expected | ||
) |
Ensure that the string actual starts with expected.
References ept::str::startswith(), and ept::tests::TestFailed::TestFailed().
Referenced by assert_greater_equal(), ept::tests::ActualCString::startswith(), and ept::tests::ActualStdString::startswith().
void ept::tests::assert_true | ( | const A & | actual | ) |
Test function that ensures that the actual value is true.
References actual(), and assert_true().
void ept::tests::assert_true | ( | std::nullptr_t | actual | ) |
References ept::tests::TestFailed::TestFailed().
Referenced by assert_true(), ept::tests::Actual< std::function< void()> >::istrue(), and ept::tests::ActualCString::istrue().