Classes | |
| class | Throwable |
| An exception class that can be used as a base class for specific exceptions, ut4cpp catches this exception and is able to output a meaningful message. More... | |
| class | AssertionException |
ut4cpp raises a AssertionException exception when an assertion fails. More... | |
| class | Test |
The actual tests must implement this Test interface. More... | |
| class | TestReport |
A TestReport object is used to record the test results. More... | |
| class | TestSet |
A TestSet contains all the tests to run. More... | |
Typedefs | |
| typedef Test *(* | TestFactory )() |
| Method signature for test factory methods. | |
| typedef void(* | SetupMethod )() |
| Method signature for setup methods. | |
| typedef void(* | TeardownMethod )() |
| Method signature for tear down methods. | |
Functions | |
| void | fail (string msg) |
Raises a AssertionException setting the given message as the cause the failure. | |
| void | assertTrue (string msg, bool assertion) |
Raises a AssertionException if the given assertion is not true. | |
| template<typename T> | |
| void | assertEquals (string msg, const T &expected, const T &actual) |
Compares the expected and actual values, if they are not equal, raises a AssertionException. | |
| template<typename T> | |
| void | assertEquals (const T &expected, const T &actual) |
Compares the expected and actual values, if they are not equal, raises a AssertionException. | |
| template<typename T> | |
| void | assertNotEquals (string msg, const T &expected, const T &actual) |
Compares the expected and actual values, if they are equal, raises a AssertionException. | |
| template<typename T> | |
| void | assertNotEquals (const T &expected, const T &actual) |
Compares the expected and actual values, if they are equal, raises a AssertionException. | |
| void | assertTrue (bool assertion) |
Raises a AssertionException if the given assertion is not true. | |
| void | assertFalse (bool assertion) |
Raises a AssertionException if the given assertion is true. | |
| void | assertFalse (string msg, bool assertion) |
Raises a AssertionException if the given assertion is true. | |
| void | assertEquals (const char *expected, const char *actual) |
Compares two C strings (char*), if they are not equal, raises a AssertionException. | |
| void | assertEquals (const char *expected, string actual) |
Compares a C string (char*) with a string object, if they are not equal, raises a AssertionException. | |
| void | assertEquals (string expected, const char *actual) |
Compares a string object with a C string (char*) , if they are not equal, raises a AssertionException. | |
| void | assertNotEquals (const char *expected, const char *actual) |
Compares two C strings (char*), if they are equal, raises a AssertionException. | |
| void | assertNotEquals (const char *expected, string actual) |
Compares a C string (char*) with a string object, if they are equal, raises a AssertionException. | |
| void | assertNotEquals (string expected, const char *actual) |
Compares a string object with a C string (char*) , if they are equal, raises a AssertionException. | |
|
||||||||||||
|
Compares a string object with a C string (char*) , if they are not equal, raises a
Definition at line 460 of file Assertion.hpp. References assertEquals(). |
|
||||||||||||
|
Compares a C string (char*) with a string object, if they are not equal, raises a
Definition at line 452 of file Assertion.hpp. References assertEquals(). |
|
||||||||||||
|
Compares two C strings (char*), if they are not equal, raises a
Definition at line 444 of file Assertion.hpp. References assertEquals(). |
|
||||||||||||||||
|
Compares the
Definition at line 358 of file Assertion.hpp. |
|
||||||||||||||||||||
|
Compares the
Definition at line 334 of file Assertion.hpp. Referenced by assertEquals(). |
|
||||||||||||
|
Raises a
Definition at line 433 of file Assertion.hpp. References assertTrue(). |
|
|
Raises a
Definition at line 425 of file Assertion.hpp. References assertTrue(). |
|
||||||||||||
|
Compares a string object with a C string (char*) , if they are equal, raises a
Definition at line 487 of file Assertion.hpp. References assertNotEquals(). |
|
||||||||||||
|
Compares a C string (char*) with a string object, if they are equal, raises a
Definition at line 479 of file Assertion.hpp. References assertNotEquals(). |
|
||||||||||||
|
Compares two C strings (char*), if they are equal, raises a
Definition at line 471 of file Assertion.hpp. References assertNotEquals(). |
|
||||||||||||||||
|
Compares the
Definition at line 397 of file Assertion.hpp. |
|
||||||||||||||||||||
|
Compares the
Definition at line 373 of file Assertion.hpp. Referenced by assertNotEquals(). |
|
|
Raises a
Definition at line 418 of file Assertion.hpp. References assertTrue(). |
|
||||||||||||
|
Raises a
Definition at line 411 of file Assertion.cpp. Referenced by assertFalse(), and assertTrue(). |
|
|
Raises a
Definition at line 405 of file Assertion.cpp. |
1.4.6-NO