#include <test.h>
Public Member Functions | |
| virtual void | init () |
| virtual void | deinit () |
| bool | get_success () |
| void | set_success (bool successful) |
Public Attributes | |
| char * | test_name |
| char * | check_name |
Protected Attributes | |
| bool | success |
To implement a test case, just make a class that derives from Test_case, and then add one or more member test functions to it. Put any common setup code in the init() function, and add any common tear-down code to the deinit() function. A new instance of Test_case is created for the invocation of each test.
|
|
Perform tear-down for a single test within this test case.
|
|
|
|
|
|
Perform setup for a single test within this test case.
|
|
|
|
|
|
name of failed check, if any
|
|
|
whether the test run succeeded
|
|
|
test name run in this test case
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman