Namespaces | Classes | Typedefs | Functions
tst Namespace Reference

Namespaces

 Validatrix
 

Classes

class  ExternalObject
 
class  ExternalObjectBase
 

Typedefs

typedef utl::ObjectFactory
< ExternalObjectBase *, int > 
ExternalObjectFactory
 

Functions

template<class Vector >
const Vector::CoordinateType & cartesian ()
 
template const
utl::AxialVector::CoordinateType
cartesian< utl::AxialVector > ()
 
template const
utl::Point::CoordinateType
cartesian< utl::Point > ()
 
template const
utl::Vector::CoordinateType
cartesian< utl::Vector > ()
 
template<class Vector >
const Vector::CoordinateType & cylindrical ()
 
template const
utl::AxialVector::CoordinateType
cylindrical< utl::AxialVector > ()
 
template const
utl::Point::CoordinateType
cylindrical< utl::Point > ()
 
template const
utl::Vector::CoordinateType
cylindrical< utl::Vector > ()
 
void Expected ()
 Print `Expected' for expected failures. More...
 
template<class Vector >
const Vector::CoordinateType & spherical ()
 
template const
utl::AxialVector::CoordinateType
spherical< utl::AxialVector > ()
 
template const
utl::Point::CoordinateType
spherical< utl::Point > ()
 
template const
utl::Vector::CoordinateType
spherical< utl::Vector > ()
 
template<class Predicate , typename T >
bool Verify (const Predicate &pred, const T &lhs, const T &rhs)
 Test condition by evaluating a predicate and print on failure. More...
 
bool Verify (const utl::CloseTo &pred, const utl::Triple &lhs, const utl::Triple &rhs)
 
bool Verify (const utl::Not< utl::CloseTo > &pred, const utl::Triple &lhs, const utl::Triple &rhs)
 
template<class Predicate , typename T >
bool Verify (const T &lhs, const T &rhs)
 Main test function. More...
 
template<class Predicate , typename T >
bool Verify (const T &lhs, const T &rhs, const double eps)
 Test for predicates with an option. More...
 

Typedef Documentation

Definition at line 24 of file testLibObjectRegistrar.h.

Function Documentation

template<class Vector >
const Vector::CoordinateType & tst::cartesian ( )

Definition at line 22 of file testBasicVectorHelper.cc.

template<class Vector >
const Vector::CoordinateType & tst::cylindrical ( )

Definition at line 29 of file testBasicVectorHelper.cc.

void tst::Expected ( )
inline

Print `Expected' for expected failures.

Definition at line 85 of file Verify.h.

Referenced by TestValidatrix::TestBuiltinFail(), testArtificialShowerFile::testCloseClose(), testSenecaShowerFile::testCloseClose(), testAiresShowerFile::testCloseClose(), testCorsikaShowerFile::testCloseClose(), testTestTools::testCloseTo(), testCONEXFile::testConstructException(), testArtificialShowerFile::testConstructException(), testSenecaShowerFile::testConstructException(), testAiresShowerFile::testConstructException(), testCorsikaShowerFile::testConstructException(), testSenecaFileParser::testConstructorThrow(), testRawFile::testConstructorThrow(), testTestTools::testEqual(), AugerUnitParserTest::testFailure(), testReferenceEllipsoid::testGetEllipsoid0(), testReferenceEllipsoid::testGetEllipsoid999(), testCONEXFile::testGetNEventsClosedException(), testArtificialShowerFile::testGetNEventsClosedException(), testSenecaShowerFile::testGetNEventsClosedException(), testCorsikaShowerFile::testGetNEventsClosedException(), testAiresShowerFile::testGetNEventsClosedException(), TestCorsikaBlock::TestIDThrow(), TestTime::TestLeapException1(), TestTime::TestLeapException2(), TestTime::TestLeapException3(), TestTime::TestLeapException4(), TestTime::TestLeapException5(), FDetectorTest::testNoSuchEye(), FDetectorTest::testNotCommissioned(), testTestTools::testNotEqual(), testCONEXFile::testOpenForWrite(), testArtificialShowerFile::testOpenForWrite(), testSenecaShowerFile::testOpenForWrite(), testCorsikaShowerFile::testOpenForWrite(), testAiresShowerFile::testOpenForWrite(), testCONEXFile::testOpenNonExisting(), testSenecaShowerFile::testOpenNonExisting(), testAiresShowerFile::testOpenNonExisting(), testCorsikaShowerFile::testOpenNonExisting(), testArtificialShowerFile::testOpenOpen(), testSenecaShowerFile::testOpenOpen(), testAiresShowerFile::testOpenOpen(), testCorsikaShowerFile::testOpenOpen(), testSenecaFileParser::testOpenThrowNonExistent(), testRawFile::testOpenThrowNonExistent(), testSenecaFileParser::testOpenThrowReOpen(), testRawFile::testOpenThrowReOpen(), testTimeDistribution::testSumException(), testUniqueObject::testThrow1(), testUniqueObject::testThrow2(), testTestTuple::testTupleClose(), testCONEXFile::testWrite(), testArtificialShowerFile::testWrite(), testSenecaShowerFile::testWrite(), testCorsikaShowerFile::testWrite(), testAiresShowerFile::testWrite(), CentralConfigTest::testXMLParseException(), and CentralConfigTest::testXMLValidationException().

template<class Vector >
const Vector::CoordinateType & tst::spherical ( )

Definition at line 36 of file testBasicVectorHelper.cc.

template<class Predicate , typename T >
bool tst::Verify ( const Predicate &  pred,
const T &  lhs,
const T &  rhs 
)
inline

Test condition by evaluating a predicate and print on failure.

If the predicate evaluates to false, we print a failure message with the values of the left- and right-hand side and the name of the predicate. This information is normally not available when using the CPPUNIT_ASSERT macro. Verify functions have the same syntax as the utl::Test function, except that in case of failure (result is false) they also print out the exact reason...

Definition at line 38 of file Verify.h.

Referenced by testTestTools::testCloseTo(), FDetectorTest::testCommissionedTelescopeList(), testObjectFactory::testCreation(), testObjectFactory::testCreationArg(), testObjectFactory::testCreationArg2(), testObjectRegistrar::testCreationExternal(), testObjectRegistrar::testCreationInherit(), testObjectRegistrar::testCreationMember(), testArtificialShowerFile::testFindEvent(), testSenecaShowerFile::testFindEvent(), testArtificialShowerFile::testGotoPosition(), testSenecaShowerFile::testGotoPosition(), testTestTools::testNotEqual(), testBasicVector::testOperations(), IntegratorTest::testRomberg(), testTransformationMatrix::testRotation(), IntegratorTest::testSimpson(), IntegratorTest::testTrapezoidal(), testTestTuple::testTupleClose(), and Verify().

bool tst::Verify ( const utl::CloseTo pred,
const utl::Triple lhs,
const utl::Triple rhs 
)
inline

Definition at line 50 of file Verify.h.

References utl::Diff(), and utl::CloseTo::Name().

bool tst::Verify ( const utl::Not< utl::CloseTo > &  pred,
const utl::Triple lhs,
const utl::Triple rhs 
)
inline

Definition at line 62 of file Verify.h.

References utl::Diff(), and utl::Not< Predicate >::Name().

template<class Predicate , typename T >
bool tst::Verify ( const T &  lhs,
const T &  rhs 
)
inline

Main test function.

Definition at line 74 of file Verify.h.

References Verify().

template<class Predicate , typename T >
bool tst::Verify ( const T &  lhs,
const T &  rhs,
const double  eps 
)
inline

Test for predicates with an option.

Definition at line 80 of file Verify.h.

References Verify().


, generated on Tue Sep 26 2023.