|
FuncDoodle
|
RAII-style test container for grouping assertions. More...
#include <Test.h>
Public Member Functions | |
| TestScope (const char *name) | |
| Creates a named test scope. | |
| ~TestScope () | |
| Finalizes and prints test scope results. | |
| void | Check (bool cond, const char *condStr, const char *msg="") |
| Evaluates a test condition. | |
Private Attributes | |
| std::string | m_Name |
| int | m_Total = 0 |
| int | m_Passed = 0 |
| int | m_Failed = 0 |
| std::vector< TestResult > | m_Results |
RAII-style test container for grouping assertions.
Automatically prints results when leaving scope.
|
inlineexplicit |
Creates a named test scope.
| name | Name printed in test output. |
|
inline |
Finalizes and prints test scope results.
|
inline |
Evaluates a test condition.
|
private |
|
private |
|
private |
|
private |
|
private |