UnitTesting::UnitTest Class Reference

Inheritance diagram for UnitTesting::UnitTest:

UnitTesting::MethodUnitTestWithComplexData UnitTesting::MethodUnitTestWithROCLimits UnitTesting::RegressionUnitTestWithDeviation UnitTesting::utFactory UnitTesting::utReader utDataSet utDataSetInfo utEvent utVariableInfo List of all members.

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::stringname () 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 &)
UnitTestoperator= (const UnitTest &)

Private Attributes

std::ostream * osptr
long nPass
long nFail
std::string fName
std::string fFileName

Detailed Description

Definition at line 86 of file stressTMVA.cxx.


Constructor & Destructor Documentation

UnitTesting::UnitTest::UnitTest ( const std::string xname = "",
const std::string filename = "",
std::ostream *  osptr = &std::cout 
) [inline]

Definition at line 116 of file stressTMVA.cxx.

References nFail, nPass, and osptr.

virtual UnitTesting::UnitTest::~UnitTest (  )  [inline, virtual]

Definition at line 90 of file stressTMVA.cxx.

UnitTesting::UnitTest::UnitTest ( const UnitTest  )  [private]


Member Function Documentation

virtual void UnitTesting::UnitTest::run (  )  [pure virtual]

long UnitTesting::UnitTest::getNumPassed (  )  const [inline]

Definition at line 126 of file stressTMVA.cxx.

References nPass.

long UnitTesting::UnitTest::getNumFailed (  )  const [inline]

Definition at line 131 of file stressTMVA.cxx.

References nFail.

const std::ostream * UnitTesting::UnitTest::getStream (  )  const [inline]

Definition at line 136 of file stressTMVA.cxx.

References osptr.

void UnitTesting::UnitTest::setStream ( std::ostream *  osptr  )  [inline]

Definition at line 141 of file stressTMVA.cxx.

References osptr.

void UnitTesting::UnitTest::succeed_ (  )  [inline]

Definition at line 146 of file stressTMVA.cxx.

References nPass.

Referenced by do_test().

long UnitTest::report (  )  const

Definition at line 202 of file stressTMVA.cxx.

References Form(), i, name(), nFail, nPass, and osptr.

void UnitTesting::UnitTest::reset (  )  [inline, virtual]

Definition at line 151 of file stressTMVA.cxx.

References nFail, and nPass.

void UnitTest::intro (  )  const

Definition at line 219 of file stressTMVA.cxx.

References fFileName, name(), and osptr.

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]

Definition at line 170 of file stressTMVA.cxx.

References do_fail(), and succeed_().

void UnitTest::do_fail ( const std::string lbl,
const char *  fname,
long  lineno 
) [protected]

Definition at line 178 of file stressTMVA.cxx.

References nFail, and osptr.

Referenced by do_test().

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().

UnitTest& UnitTesting::UnitTest::operator= ( const UnitTest  )  [private]


Member Data Documentation

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]

Definition at line 109 of file stressTMVA.cxx.

Referenced by name().

std::string UnitTesting::UnitTest::fFileName [private]

Definition at line 110 of file stressTMVA.cxx.

Referenced by intro().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 17:01:49 2011 for ROOT_528-00b_version by  doxygen 1.5.1