Test suite for the TimeInstant Class. More...
#include <TsTimeInstant.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcCheckOperators () |
| Test Case: Check operators (==, >,<, !=, -). More... | |
| void | tcClone () |
| Test Case: Clone this object and return AbstractData. More... | |
| void | tcGetDate () |
| Test Case: It returns the date associated to time instant. More... | |
| void | tcGetTime () |
| Test Case:It returns the time duration associated to time instant. More... | |
| void | tcGetTimeInstant () |
| Test Case: It returns the boost time instant type. More... | |
| void | tcTimeInstant () |
| Test Case: Empty Constructor. More... | |
| void | tcTimeInstant2 () |
| Test Case: Constructor from a date and time offset. More... | |
| void | tcTimeInstant3 () |
| Test Case: Constructor from a boost time instant type. More... | |
| void | tcToString () |
| It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date-time separator. More... | |
Private Member Functions | |
| CPPUNIT_TEST (tcTimeInstant) | |
| CPPUNIT_TEST (tcTimeInstant2) | |
| CPPUNIT_TEST (tcTimeInstant3) | |
| CPPUNIT_TEST (tcGetTimeInstant) | |
| CPPUNIT_TEST (tcGetDate) | |
| CPPUNIT_TEST (tcGetTime) | |
| CPPUNIT_TEST (tcCheckOperators) | |
| CPPUNIT_TEST (tcClone) | |
| CPPUNIT_TEST (tcToString) | |
| CPPUNIT_TEST_SUITE (TsTimeInstant) | |
| CPPUNIT_TEST_SUITE_END () | |
Test suite for the TimeInstant Class.
This test suite will check the following:
Definition at line 60 of file TsTimeInstant.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsTimeInstant::setUp | ( | ) |
Definition at line 37 of file TsTimeInstant.cpp.
|
protected |
Test Case: Check operators (==, >,<, !=, -).
Definition at line 120 of file TsTimeInstant.cpp.
References de, ds, td, and te::dt::TimeInstant::toString().
|
protected |
Test Case: Clone this object and return AbstractData.
Definition at line 161 of file TsTimeInstant.cpp.
References te::dt::TimeInstant::clone(), and TT.
|
protected |
Test Case: It returns the date associated to time instant.
Definition at line 98 of file TsTimeInstant.cpp.
References ds, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::Date::getMonth(), te::dt::Date::getYear(), and td.
|
protected |
Test Case:It returns the time duration associated to time instant.
Definition at line 108 of file TsTimeInstant.cpp.
References ds, te::dt::TimeDuration::getFractionalSeconds(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), td, and td1.
|
protected |
Test Case: It returns the boost time instant type.
Definition at line 85 of file TsTimeInstant.cpp.
References ds, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getFractionalSeconds(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::Date::getYear(), and td.
|
protected |
Test Case: Empty Constructor.
Definition at line 45 of file TsTimeInstant.cpp.
References te::dt::TimeInstant::toString(), and TT.
|
protected |
Test Case: Constructor from a date and time offset.
Definition at line 59 of file TsTimeInstant.cpp.
References ds, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getFractionalSeconds(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::Date::getYear(), and td.
|
protected |
Test Case: Constructor from a boost time instant type.
Definition at line 70 of file TsTimeInstant.cpp.
References bt, ds, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getFractionalSeconds(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::TimeInstant::getTimeInstant(), te::dt::Date::getYear(), and td.
|
protected |
It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date-time separator.
Definition at line 173 of file TsTimeInstant.cpp.
References te::dt::TimeInstant::clone(), te::dt::TimeInstant::toString(), and TT.
| void TsTimeInstant::tearDown | ( | ) |
Definition at line 41 of file TsTimeInstant.cpp.