Inheritance diagram for UnitTesting::UnitTest:
Public Member Functions | |
UnitTest (const std::string &xname="", const std::string &filename="", std::ostream *osptr=&std::cout) | |
virtual | ~UnitTest () |
virtual void | run ()=0 |
long | getNumPassed () const |
long | getNumFailed () const |
const std::ostream * | getStream () const |
void | setStream (std::ostream *osptr) |
void | succeed_ () |
long | report () const |
virtual void | reset () |
void | intro () const |
const std::string & | name () const |
Protected Member Functions | |
void | do_test (bool cond, const std::string &lbl, const char *fname, long lineno) |
void | do_fail (const std::string &lbl, const char *fname, long lineno) |
bool | floatCompare (float x1, float x2) |
Private Member Functions | |
UnitTest (const UnitTest &) | |
UnitTest & | operator= (const UnitTest &) |
Private Attributes | |
std::ostream * | osptr |
long | nPass |
long | nFail |
std::string | fName |
std::string | fFileName |
Definition at line 86 of file stressTMVA.cxx.
UnitTesting::UnitTest::UnitTest | ( | const std::string & | xname = "" , |
|
const std::string & | filename = "" , |
|||
std::ostream * | osptr = &std::cout | |||
) | [inline] |
virtual UnitTesting::UnitTest::~UnitTest | ( | ) | [inline, virtual] |
Definition at line 90 of file stressTMVA.cxx.
UnitTesting::UnitTest::UnitTest | ( | const UnitTest & | ) | [private] |
virtual void UnitTesting::UnitTest::run | ( | ) | [pure virtual] |
long UnitTesting::UnitTest::getNumPassed | ( | ) | const [inline] |
long UnitTesting::UnitTest::getNumFailed | ( | ) | const [inline] |
const std::ostream * UnitTesting::UnitTest::getStream | ( | ) | const [inline] |
void UnitTesting::UnitTest::setStream | ( | std::ostream * | osptr | ) | [inline] |
void UnitTesting::UnitTest::succeed_ | ( | ) | [inline] |
long UnitTest::report | ( | ) | const |
void UnitTesting::UnitTest::reset | ( | ) | [inline, virtual] |
void UnitTest::intro | ( | ) | const |
const std::string & UnitTest::name | ( | ) | const |
Definition at line 194 of file stressTMVA.cxx.
References fName.
Referenced by intro(), report(), utDataSetInfo::testConstructor(), and utDataSetInfo::utDataSetInfo().
void UnitTest::do_test | ( | bool | cond, | |
const std::string & | lbl, | |||
const char * | fname, | |||
long | lineno | |||
) | [protected] |
void UnitTest::do_fail | ( | const std::string & | lbl, | |
const char * | fname, | |||
long | lineno | |||
) | [protected] |
bool UnitTest::floatCompare | ( | float | x1, | |
float | x2 | |||
) | [protected] |
Definition at line 187 of file stressTMVA.cxx.
References TMath::Abs().
Referenced by utEvent::_testConstructor1(), utEvent::_testConstructor2(), utEvent::_testConstructor3(), utEvent::_testConstructor4(), utEvent::_testConstructor5(), and utEvent::_testMutators().
std::ostream* UnitTesting::UnitTest::osptr [private] |
Definition at line 106 of file stressTMVA.cxx.
Referenced by do_fail(), getStream(), intro(), report(), setStream(), and UnitTest().
long UnitTesting::UnitTest::nPass [private] |
Definition at line 107 of file stressTMVA.cxx.
Referenced by getNumPassed(), report(), reset(), succeed_(), and UnitTest().
long UnitTesting::UnitTest::nFail [private] |
Definition at line 108 of file stressTMVA.cxx.
Referenced by do_fail(), getNumFailed(), report(), reset(), and UnitTest().
std::string UnitTesting::UnitTest::fName [mutable, private] |
std::string UnitTesting::UnitTest::fFileName [private] |