#include <TestItem.hpp>
Collaboration diagram for TestItem:
Public Member Functions | |
TestItem (const char *itemName) | |
~TestItem () | |
void | passItem () |
void | failItem (const char *_fileName, const int lineNum) |
void | expectNonZero (const char *_fileName, const int lineNum, const int val) |
void | expectFalse (const char *_fileName, const int lineNum, const bool val) |
void | expectTrue (const char *_fileName, const int lineNum, const bool val) |
void | expectZero (const char *_fileName, const int lineNum, const int val) |
void | sameString (const char *fileName, const int lineNum, const char *string1, const char *string2) |
bool | passed () |
Static Public Member Functions | |
static void | setBed (TestBed *aBed) |
Private Member Functions | |
int | compare (const TestItem &otherItem) const |
Private Attributes | |
char * | name |
bool | success |
bool | isSet |
char * | fileName |
int | lineNumber |
Static Private Attributes | |
static TestBed * | theBed |
Friends | |
std::ostream & | operator<< (std::ostream &os, const TestItem &item) |
bool | operator< (const TestItem &item1, const TestItem &item2) |
bool | operator> (const TestItem &item1, const TestItem &item2) |
bool | operator<= (const TestItem &item1, const TestItem &item2) |
bool | operator>= (const TestItem &item1, const TestItem &item2) |
bool | operator== (const TestItem &item1, const TestItem &item2) |
bool | operator!= (const TestItem &item1, const TestItem &item2) |
Definition at line 12 of file TestItem.hpp.
TestItem::TestItem | ( | const char * | itemName | ) |
TestItem::~TestItem | ( | ) |
int TestItem::compare | ( | const TestItem & | otherItem | ) | const [private] |
static void TestItem::setBed | ( | TestBed * | aBed | ) | [inline, static] |
void TestItem::passItem | ( | ) | [inline] |
void TestItem::failItem | ( | const char * | _fileName, | |
const int | lineNum | |||
) |
void TestItem::expectNonZero | ( | const char * | _fileName, | |
const int | lineNum, | |||
const int | val | |||
) |
void TestItem::expectFalse | ( | const char * | _fileName, | |
const int | lineNum, | |||
const bool | val | |||
) |
void TestItem::expectTrue | ( | const char * | _fileName, | |
const int | lineNum, | |||
const bool | val | |||
) |
void TestItem::expectZero | ( | const char * | _fileName, | |
const int | lineNum, | |||
const int | val | |||
) |
void TestItem::sameString | ( | const char * | fileName, | |
const int | lineNum, | |||
const char * | string1, | |||
const char * | string2 | |||
) |
bool TestItem::passed | ( | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const TestItem & | item | |||
) | [friend] |
TestBed* TestItem::theBed [static, private] |
char* TestItem::name [private] |
Definition at line 14 of file TestItem.hpp.
bool TestItem::success [private] |
bool TestItem::isSet [private] |
char* TestItem::fileName [private] |
Definition at line 17 of file TestItem.hpp.
int TestItem::lineNumber [private] |
Definition at line 18 of file TestItem.hpp.