handle assertions More...
Go to the source code of this file.
Namespaces | |
namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
Functions | |
void | mockpp::assertTrue (unsigned srcline, const char *srcfile, const String &message, bool condition) |
Asserts that a condition is true. | |
void | mockpp::assertTrue (unsigned srcline, const char *srcfile, bool condition) |
Asserts that a condition is true. | |
void | mockpp::assertFalse (unsigned srcline, const char *srcfile, const String &message, bool condition) |
Asserts that a condition is false. | |
void | mockpp::assertFalse (unsigned srcline, const char *srcfile, bool condition) |
Asserts that a condition is false. | |
void | mockpp::fail (unsigned srcline, const char *srcfile, const String &message) |
Fails a test with the given message (AssertionFailedError is thrown). | |
void | mockpp::fail (unsigned srcline, const char *srcfile) |
Fails a test with no message. | |
void | mockpp::assertEquals (unsigned srcline, const char *srcfile, const char *expected, const char *actual) |
Asserts that two c-string are equal. | |
void | mockpp::assertEquals (unsigned srcline, const char *srcfile, const String &message, const char *expected, const char *actual) |
Asserts that two c-string are equal. | |
void | mockpp::assertEquals (unsigned srcline, const char *srcfile, const wchar_t *expected, const wchar_t *actual) |
Asserts that two unicode c-string are equal. | |
void | mockpp::assertEquals (unsigned srcline, const char *srcfile, const String &message, const wchar_t *expected, const wchar_t *actual) |
Asserts that two unicode c-string are equal. | |
void | mockpp::assertDelta (unsigned srcline, const char *srcfile, const String &message, double expected, double actual, double delta) |
Asserts that two doubles are equal concerning a delta. | |
void | mockpp::assertDelta (unsigned srcline, const char *srcfile, double expected, double actual, double delta) |
Asserts that two doubles are equal concerning a delta. | |
void | mockpp::assertDelta (unsigned srcline, const char *srcfile, const String &message, float expected, float actual, float delta) |
Asserts that two floats are equal concerning a delta. | |
void | mockpp::assertDelta (unsigned srcline, const char *srcfile, float expected, float actual, float delta) |
Asserts that two floats are equal concerning a delta. |
handle assertions
Definition in file Asserter.cpp.