Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions
test::CompositionTestBase Class Reference

#include <compositions.hh>

Inheritance diagram for test::CompositionTestBase:
Inheritance graph
[legend]
Collaboration diagram for test::CompositionTestBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void _succeed ()
 Explicitly succeds a test.
long getNumFailed () const
 Returns number of failed tests.
long getNumPassed () const
 Returns number of passed tests.
const ostream * getStream () const
 Returns output stream.
long report () const
 Prints a report on the number of passed and failed tests to the output stream.
virtual void reset ()
 Resets the counters for the failed and passed tests.
virtual void run ()=0
 Runs the tests. Must be overwritten by the specialization.
void setStream (ostream *osptr)
 Sets the output stream.

Protected Member Functions

template<typename F >
void compare (const concepts::Matrix< F > &a, concepts::Operator< F > &b)
void do_fail (const string &lbl, const char *fname, long lineno)
 Internal function to report a failed test (besides increasing the failed counter)
bool do_numtest (std::complex< double > num, std::complex< double > orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10)
bool do_numtest (double num, double orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10)
 Internal function to do a numerical test.
bool do_test (bool cond, const string &lbl, const char *fname, long lineno)
 Internal function to do a test.

Detailed Description

Definition at line 19 of file compositions.hh.


Member Function Documentation

void test::TestCase::_succeed ( ) [inline, inherited]

Explicitly succeds a test.

Definition at line 109 of file testcase.hh.

template<typename F >
void test::CompositionTestBase::compare ( const concepts::Matrix< F > &  a,
concepts::Operator< F > &  b 
) [protected]
void test::TestCase::do_fail ( const string &  lbl,
const char *  fname,
long  lineno 
) [protected, inherited]

Internal function to report a failed test (besides increasing the failed counter)

bool test::TestCase::do_numtest ( double  num,
double  orig,
const string &  lbl,
const string &  lbl2,
const char *  fname,
long  lineno,
const double  tol = 1e-10 
) [protected, inherited]

Internal function to do a numerical test.

bool test::TestCase::do_numtest ( std::complex< double >  num,
std::complex< double >  orig,
const string &  lbl,
const string &  lbl2,
const char *  fname,
long  lineno,
const double  tol = 1e-10 
) [protected, inherited]
bool test::TestCase::do_test ( bool  cond,
const string &  lbl,
const char *  fname,
long  lineno 
) [protected, inherited]

Internal function to do a test.

long test::TestCase::getNumFailed ( ) const [inline, inherited]

Returns number of failed tests.

Definition at line 102 of file testcase.hh.

long test::TestCase::getNumPassed ( ) const [inline, inherited]

Returns number of passed tests.

Definition at line 100 of file testcase.hh.

const ostream* test::TestCase::getStream ( ) const [inline, inherited]

Returns output stream.

Definition at line 104 of file testcase.hh.

long test::TestCase::report ( ) const [inherited]

Prints a report on the number of passed and failed tests to the output stream.

Returns:
Number of failed tests.
virtual void test::TestCase::reset ( ) [inline, virtual, inherited]

Resets the counters for the failed and passed tests.

Definition at line 116 of file testcase.hh.

virtual void test::TestCase::run ( ) [pure virtual, inherited]

Runs the tests. Must be overwritten by the specialization.

Implemented in test::DGNorm2dTest, test::MatlabBinaryGraphicsTest, test::Eddy2DRingTest, test::AsympEdgesTest, test::NineCellsLaTest, test::BoundaryTest, test::DP_AP_test, test::homEV, test::LaplaceTest, test::PHC4_Test, test::ExceptionTest, test::PointTest, test::MappingTest, test::ToTest, test::BEMSpaceTest, test::ArPackppTest, test::ArPackTest, test::ConstrainedEVP, test::DirPowItTest, test::BesselTest, test::ElementFormulaTest, test::FormulaTest, test::VectorTest, test::DeadLock1, test::ConvertMeshQuads, test::MeshImp2DTest, test::TestBlending, test::TestEdgeMaps2D, test::EdgeMeshTest, test::InfiniteMesh2dTest, test::TestJacobian2D, test::Quad2dTest, test::TestMatrices1D, test::TestDualSpace1D, test::TestIntegrals1D, test::TestLinearForm1D, test::CellConditionTest, test::Cloneing, test::DirichletTest, test::EdgeTest, test::Formula2DTest, test::FunctionEvaluation, test::H1extensionTest, test::hpFullTest2D, test::IntegralTest, test::LinearFormTest, test::TestMatrices2D, test::ProjectionTest, test::SpaceH1Test, test::SpaceTest2D, test::SpaceH1onInfMeshTest, test::MixedNonContTest, test::TraceTest, test::BilinearFormTest, test::BoundariesTest, test::LinearFormTest, test::DeadLock2, test::DeadLock3, test::SpaceTest3D, test::QuadratureTest, test::KarniadakisTest, test::LaguerreTest, test::DGEdgeInfoTest, test::DGElementPair2dTest, test::DGTriangleP1Test, test::DGSpace2dP1Test, test::MatlabMatfileTest, test::MatfileTest, test::Eddy2DRingTest, test::BiCgStabTest, test::CgTest, test::CompositionsTest, test::MoreCompositionsTest, test::DeepCompositionsTest, test::DomainDecomp, test::LapackTest, test::PardisoTest, test::SparseMatrixTest, test::SuperLUTest, test::UmfpackTest, test::DomainDecompTest, test::ElementFormulaTest, test::ElementFunctionTest, test::IndexRangeTest, test::DriverTest, and test::RCPTest.

void test::TestCase::setStream ( ostream *  osptr) [inline, inherited]

Sets the output stream.

Definition at line 106 of file testcase.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)