Test for class MatfileIO.
More...
#include <matfileIOTest.hh>
|
void | do_fail (const string &lbl, const char *fname, long lineno) |
| Internal function to report a failed test (besides increasing the failed counter) More...
|
|
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. More...
|
|
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_test (bool cond, const string &lbl, const char *fname, long lineno) |
| Internal function to do a test. More...
|
|
|
void | createMATfile () const |
|
template<class F > |
bool | isEqual_ (concepts::Array< F > &m1, concepts::Array< F > &m2) |
|
bool | isEqual_ (concepts::Cmplx &m1, concepts::Cmplx &m2) |
|
template<class F > |
bool | isEqual_ (concepts::DiagonalMatrix< F > &m1, concepts::DiagonalMatrix< F > &m2) |
|
template<class F > |
bool | isEqual_ (concepts::ElementMatrix< F > &m1, concepts::ElementMatrix< F > &m2) |
|
template<class F , uint dim1, uint dim2> |
bool | isEqual_ (concepts::Mapping< F, dim1 > &m1, concepts::Mapping< F, dim2 > &m2) |
|
template<class F , uint dim1, uint dim2> |
bool | isEqual_ (concepts::Point< F, dim1 > &m1, concepts::Point< F, dim2 > &m2) |
|
bool | isEqual_ (concepts::Real &m1, concepts::Real &m2) |
|
template<class F > |
bool | isEqual_ (concepts::Sequence< F > &m1, concepts::Sequence< F > &m2) |
|
template<class F > |
bool | isEqual_ (concepts::SparseMatrix< F > &m1, concepts::SparseMatrix< F > &m2) |
|
template<class F > |
bool | isEqual_ (concepts::Vector< F > &m1, concepts::Vector< F > &m2) |
|
template<typename F > |
void | testAddSth_ (F &obj) |
| Test for adding ElementMatrix, SparseMatrix, DiagonalMatrix, Sequence, Vector, Array, Mapping, Point, Scalars. More...
|
|
template<typename F , typename G > |
void | testAddSthOtherCmp_ (F &obj_F, G &obj_G) |
| Test for adding Array<Point> More...
|
|
void | testBasics_ () |
| Test for public methods. More...
|
|
void | testClearAll_ () |
| Test for clearing the MAT file. More...
|
|
void | testGetSth_ () |
| Test for getting ElementMatrix, SparseMatrix, DiagonalMatrix, Sequence, Vector, Sequence<Vector> Array, Mapping, Point, Scalars. More...
|
|
Test for class MatfileIO.
- Author
- Robert Gruhlke 2013
Definition at line 22 of file matfileIOTest.hh.
◆ MatfileIOTest()
test::MatfileIOTest::MatfileIOTest |
( |
| ) |
|
|
inline |
◆ ~MatfileIOTest()
virtual test::MatfileIOTest::~MatfileIOTest |
( |
| ) |
|
|
inlinevirtual |
◆ _succeed()
void test::TestCase::_succeed |
( |
| ) |
|
|
inlineinherited |
Explicitly succeds a test.
Definition at line 112 of file testcase.hh.
◆ createMATfile()
void test::MatfileIOTest::createMATfile |
( |
| ) |
const |
|
private |
◆ do_fail()
void test::TestCase::do_fail |
( |
const string & |
lbl, |
|
|
const char * |
fname, |
|
|
long |
lineno |
|
) |
| |
|
protectedinherited |
Internal function to report a failed test (besides increasing the failed counter)
◆ do_numtest() [1/2]
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 |
|
) |
| |
|
protectedinherited |
Internal function to do a numerical test.
◆ do_numtest() [2/2]
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 |
|
) |
| |
|
protectedinherited |
◆ do_test()
bool test::TestCase::do_test |
( |
bool |
cond, |
|
|
const string & |
lbl, |
|
|
const char * |
fname, |
|
|
long |
lineno |
|
) |
| |
|
protectedinherited |
Internal function to do a test.
◆ getNumFailed()
long test::TestCase::getNumFailed |
( |
| ) |
const |
|
inlineinherited |
Returns number of failed tests.
Definition at line 105 of file testcase.hh.
◆ getNumPassed()
long test::TestCase::getNumPassed |
( |
| ) |
const |
|
inlineinherited |
Returns number of passed tests.
Definition at line 103 of file testcase.hh.
◆ getStream()
const ostream* test::TestCase::getStream |
( |
| ) |
const |
|
inlineinherited |
◆ isEqual_() [1/10]
◆ isEqual_() [2/10]
◆ isEqual_() [3/10]
◆ isEqual_() [4/10]
◆ isEqual_() [5/10]
template<class F , uint dim1, uint dim2>
◆ isEqual_() [6/10]
template<class F , uint dim1, uint dim2>
◆ isEqual_() [7/10]
◆ isEqual_() [8/10]
◆ isEqual_() [9/10]
◆ isEqual_() [10/10]
◆ report()
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.
◆ reset()
virtual void test::TestCase::reset |
( |
| ) |
|
|
inlinevirtualinherited |
Resets the counters for the failed and passed tests.
Definition at line 119 of file testcase.hh.
◆ run()
virtual void test::MatfileIOTest::run |
( |
| ) |
|
|
virtual |
Runs the tests. Must be overwritten by the specialization.
Implements test::TestCase.
◆ setStream()
void test::TestCase::setStream |
( |
ostream * |
osptr | ) |
|
|
inlineinherited |
◆ testAddSth_()
template<typename F >
void test::MatfileIOTest::testAddSth_ |
( |
F & |
obj | ) |
|
|
private |
Test for adding ElementMatrix, SparseMatrix, DiagonalMatrix, Sequence, Vector, Array, Mapping, Point, Scalars.
◆ testAddSthOtherCmp_()
template<typename F , typename G >
void test::MatfileIOTest::testAddSthOtherCmp_ |
( |
F & |
obj_F, |
|
|
G & |
obj_G |
|
) |
| |
|
private |
Test for adding Array<Point>
◆ testBasics_()
void test::MatfileIOTest::testBasics_ |
( |
| ) |
|
|
private |
◆ testClearAll_()
void test::MatfileIOTest::testClearAll_ |
( |
| ) |
|
|
private |
Test for clearing the MAT file.
◆ testGetSth_()
void test::MatfileIOTest::testGetSth_ |
( |
| ) |
|
|
private |
Test for getting ElementMatrix, SparseMatrix, DiagonalMatrix, Sequence, Vector, Sequence<Vector> Array, Mapping, Point, Scalars.
◆ m_nFail
long test::TestCase::m_nFail |
|
privateinherited |
◆ m_nPass
long test::TestCase::m_nPass |
|
privateinherited |
◆ m_osptr
ostream* test::TestCase::m_osptr |
|
privateinherited |
The documentation for this class was generated from the following file: