CUTB
|
API class for parsing CUTB tests. More...
Classes | |
class | TestDef |
Test definition. More... | |
class | TestFile |
Test file. More... | |
class | TestGrp |
Test group. More... | |
Public Member Functions | |
virtual void | start (const TestFile *file) |
The callback function called at the start of each file. More... | |
virtual void | end (const TestFile *file) |
The callback function called at the end of each file. More... | |
virtual void | start (const TestGrp *grp, const TestFile *file) |
The callback function called at the start of each test group. More... | |
virtual void | end (const TestGrp *grp, const TestFile *file) |
The callback function called at the end of each test group. More... | |
virtual void | at (const TestDef *testdef, const TestGrp *grp, const TestFile *file) |
The callback function called at each test definition. More... | |
Static Public Member Functions | |
static void | parse (Parser &parser) |
Parses all test files. More... | |
static void | parse (Parser &parser, const char *filepath) |
Parses a test file. More... | |
API class for parsing CUTB tests.
To parse tests, first define a subclass of Parser overriding callback functions, and then call parse() with an object of the subclass. Not all the callback functions need to be overridden.
|
inlinevirtual |
The callback function called at each test definition.
testdef | test definition information |
grp | test group information |
file | file information |
|
inlinevirtual |
The callback function called at the end of each file.
file | file information |
The callback function called at the end of each test group.
grp | test group information |
file | file information |
|
static |
Parses all test files.
parser | an object of a subclass of Parser |
|
static |
Parses a test file.
parser | an object of a subclass of Parser |
filepath | the file path to the test file to be parsed |
|
inlinevirtual |
The callback function called at the start of each file.
file | file information |
The callback function called at the start of each test group.
grp | test group information |
file | file information |