#include <cppunit_mini.h>
|
| TestCase () |
|
void | setUp () |
| Set up context before running a test.
|
|
int | numErrors () |
|
virtual void | myRun (const char *, bool=false) |
|
virtual void | error (const char *in_macroName, const char *in_macro, const char *in_file, int in_line) |
|
bool | equalDoubles (double in_expected, double in_real, double in_maxErr) |
|
virtual void | progress (const char *in_className, const char *in_functionName, bool ignored, bool explicitTest) |
|
bool | shouldRunThis (const char *in_desiredTest, const char *in_className, const char *in_functionName, bool invert, bool explicit_test, bool &do_progress) |
|
void | tearDown () |
| Clean up after the test run.
|
|
virtual | ~TestFixture () |
|
virtual void | setUp () |
| Set up context before running a test.
|
|
virtual void | tearDown () |
| Clean up after the test run.
|
|
Definition at line 54 of file cppunit_mini.h.
◆ TestCase()
Definition at line 56 of file cppunit_mini.h.
static void registerTestCase(TestCase *in_testCase)
◆ equalDoubles()
Definition at line 78 of file cppunit_mini.h.
78 {
79 double diff = in_expected - in_real;
80 if (diff < 0.) {
81 diff = -diff;
82 }
83 return diff < in_maxErr;
84 }
◆ error()
Definition at line 65 of file cppunit_mini.h.
65 {
69 }
70 }
virtual void error(const char *, const char *, const char *, int)
static Reporter * m_reporter
◆ message()
Definition at line 72 of file cppunit_mini.h.
72 {
75 }
76 }
virtual void message(const char *)
◆ myRun()
◆ numErrors()
int TestCase::numErrors |
( |
| ) |
|
|
inline |
◆ progress()
Definition at line 86 of file cppunit_mini.h.
86 {
90 }
91 }
virtual void progress(const char *, const char *, bool, bool)
◆ registerTestCase()
◆ run()
Definition at line 37 of file test_main.cpp.
37 {
39
42
44 while (tmp != 0) {
47 }
49 }
virtual void myRun(const char *, bool=false)
◆ setUp()
◆ shouldRunThis()
Definition at line 93 of file cppunit_mini.h.
94 {
95 if ((in_desiredTest) && (in_desiredTest[0] != '\0')) {
96 do_progress = false;
97 const char *
ptr =
strstr(in_desiredTest,
"::");
101
104 }
105 bool match = (
strcmp(in_desiredTest, in_className) == 0);
108 }
109 do_progress = true;
110 return !explicit_test;
111 }
int strcmp(const char *String1, const char *String2)
char * strstr(char *String1, char *String2)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
◆ tearDown()
void TestCase::tearDown |
( |
| ) |
|
|
inlinevirtual |
◆ m_failed
◆ m_next
◆ m_numErrors
int TestCase::m_numErrors = 0 |
|
staticprotected |
◆ m_numTests
int TestCase::m_numTests = 0 |
|
staticprotected |
◆ m_reporter
◆ m_root
The documentation for this class was generated from the following files: