Functions | Variables
time.cpp File Reference
#include <vector>
#include <gtest/gtest.h>
#include <ros/time.h>
#include <sys/time.h>
#include <boost/date_time/posix_time/ptime.hpp>
Include dependency graph for test/time.cpp:

Go to the source code of this file.

Functions

void alarmHandler (int sig)
void generate_rand_durations (uint32_t range, uint64_t runs, std::vector< ros::Duration > &values1, std::vector< ros::Duration > &values2)
void generate_rand_times (uint32_t range, uint64_t runs, std::vector< ros::Time > &values1, std::vector< ros::Time > &values2)
int main (int argc, char **argv)
void seed_rand ()
 TEST (Time, size)
 TEST (Time, Comparitors)
 TEST (Time, ToFromDouble)
 TEST (Time, OperatorPlus)
 TEST (Time, OperatorMinus)
 TEST (Time, OperatorPlusEquals)
 TEST (Time, OperatorMinusEquals)
 TEST (Time, SecNSecConstructor)
 TEST (Time, DontMungeStreamState)
 TEST (Time, ToFromBoost)
 TEST (Duration, Comparitors)
 TEST (Duration, ToFromSec)
 TEST (Duration, OperatorPlus)
 TEST (Duration, OperatorMinus)
 TEST (Duration, OperatorTimes)
 TEST (Duration, OperatorPlusEquals)
 TEST (Duration, OperatorMinusEquals)
 TEST (Duration, sleepWithSignal)

Variables

double epsilon = 1e-9

Function Documentation

void alarmHandler ( int  sig)

Definition at line 419 of file test/time.cpp.

void generate_rand_durations ( uint32_t  range,
uint64_t  runs,
std::vector< ros::Duration > &  values1,
std::vector< ros::Duration > &  values2 
)

Definition at line 66 of file test/time.cpp.

void generate_rand_times ( uint32_t  range,
uint64_t  runs,
std::vector< ros::Time > &  values1,
std::vector< ros::Time > &  values2 
)

Definition at line 52 of file test/time.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 441 of file test/time.cpp.

void seed_rand ( )

Definition at line 44 of file test/time.cpp.

TEST ( Time  ,
size   
)

Definition at line 101 of file test/time.cpp.

TEST ( Time  ,
Comparitors   
)

Definition at line 107 of file test/time.cpp.

TEST ( Time  ,
ToFromDouble   
)

Definition at line 140 of file test/time.cpp.

TEST ( Time  ,
OperatorPlus   
)

Definition at line 154 of file test/time.cpp.

TEST ( Time  ,
OperatorMinus   
)

Definition at line 175 of file test/time.cpp.

TEST ( Time  ,
OperatorPlusEquals   
)

Definition at line 196 of file test/time.cpp.

TEST ( Time  ,
OperatorMinusEquals   
)

Definition at line 217 of file test/time.cpp.

TEST ( Time  ,
SecNSecConstructor   
)

Definition at line 238 of file test/time.cpp.

TEST ( Time  ,
DontMungeStreamState   
)

Definition at line 245 of file test/time.cpp.

TEST ( Time  ,
ToFromBoost   
)

Definition at line 257 of file test/time.cpp.

TEST ( Duration  ,
Comparitors   
)

Definition at line 276 of file test/time.cpp.

TEST ( Duration  ,
ToFromSec   
)

Definition at line 310 of file test/time.cpp.

TEST ( Duration  ,
OperatorPlus   
)

Definition at line 327 of file test/time.cpp.

TEST ( Duration  ,
OperatorMinus   
)

Definition at line 343 of file test/time.cpp.

TEST ( Duration  ,
OperatorTimes   
)

Definition at line 361 of file test/time.cpp.

TEST ( Duration  ,
OperatorPlusEquals   
)

Definition at line 377 of file test/time.cpp.

TEST ( Duration  ,
OperatorMinusEquals   
)

Definition at line 398 of file test/time.cpp.

TEST ( Duration  ,
sleepWithSignal   
)

Definition at line 424 of file test/time.cpp.


Variable Documentation

double epsilon = 1e-9
Todo:
All the tests in here that use randomized values are not unit tests, replace them

Definition at line 42 of file test/time.cpp.



rostime
Author(s): Josh Faust
autogenerated on Fri Aug 28 2015 12:39:10