MRPT  2.0.0
Functions
datetime_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/core/Clock.h>
#include <mrpt/system/datetime.h>
#include <thread>
Include dependency graph for datetime_unittest.cpp:

Go to the source code of this file.

Functions

 TEST (DateTime, dateTimeVsClock)
 
 TEST (DateTime, time_t_forth_back)
 
 TEST (DateTime, fixed_date_check)
 
 TEST (DateTime, double_to_from)
 
 TEST (DateTime, timestampAdd)
 

Function Documentation

◆ TEST() [1/5]

TEST ( DateTime  ,
dateTimeVsClock   
)

Definition at line 16 of file datetime_unittest.cpp.

References EXPECT_GT(), EXPECT_LT(), mrpt::system::getCurrentTime(), and mrpt::Clock::now().

Here is the call graph for this function:

◆ TEST() [2/5]

TEST ( DateTime  ,
time_t_forth_back   
)

Definition at line 30 of file datetime_unittest.cpp.

References EXPECT_NEAR(), mrpt::system::time_tToTimestamp(), and mrpt::system::timestampTotime_t().

Here is the call graph for this function:

◆ TEST() [3/5]

TEST ( DateTime  ,
fixed_date_check   
)

Definition at line 46 of file datetime_unittest.cpp.

References mrpt::system::dateTimeToString(), EXPECT_EQ(), EXPECT_NEAR(), and mrpt::system::timestampTotime_t().

Here is the call graph for this function:

◆ TEST() [4/5]

TEST ( DateTime  ,
double_to_from   
)

Definition at line 57 of file datetime_unittest.cpp.

References EXPECT_NEAR(), mrpt::Clock::fromDouble(), mrpt::system::now(), and mrpt::system::timestampToDouble().

Here is the call graph for this function:

◆ TEST() [5/5]

TEST ( DateTime  ,
timestampAdd   
)

Definition at line 67 of file datetime_unittest.cpp.

References EXPECT_NEAR(), mrpt::system::now(), mrpt::system::timestampAdd(), and mrpt::system::timestampToDouble().

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020