$search

time.cpp File Reference

#include <vector>
#include <gtest/gtest.h>
#include <ros/time.h>
#include <sys/time.h>
Include dependency graph for 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 (Duration, sleepWithSignal)
 TEST (Duration, OperatorMinusEquals)
 TEST (Duration, OperatorPlusEquals)
 TEST (Duration, OperatorTimes)
 TEST (Duration, OperatorMinus)
 TEST (Duration, OperatorPlus)
 TEST (Duration, ToFromSec)
 TEST (Duration, Comparitors)
 TEST (Time, DontMungeStreamState)
 TEST (Time, SecNSecConstructor)
 TEST (Time, OperatorMinusEquals)
 TEST (Time, OperatorPlusEquals)
 TEST (Time, OperatorMinus)
 TEST (Time, OperatorPlus)
 TEST (Time, ToFromDouble)
 TEST (Time, Comparitors)
 TEST (Time, size)

Variables

double epsilon = 1e-9

Function Documentation

void alarmHandler ( int  sig  ) 

Definition at line 376 of file 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 64 of file 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 50 of file time.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 398 of file time.cpp.

void seed_rand (  ) 

Definition at line 42 of file time.cpp.

TEST ( Duration  ,
sleepWithSignal   
)

Definition at line 381 of file time.cpp.

TEST ( Duration  ,
OperatorMinusEquals   
)

Definition at line 355 of file time.cpp.

TEST ( Duration  ,
OperatorPlusEquals   
)

Definition at line 334 of file time.cpp.

TEST ( Duration  ,
OperatorTimes   
)

Definition at line 318 of file time.cpp.

TEST ( Duration  ,
OperatorMinus   
)

Definition at line 300 of file time.cpp.

TEST ( Duration  ,
OperatorPlus   
)

Definition at line 284 of file time.cpp.

TEST ( Duration  ,
ToFromSec   
)

Definition at line 269 of file time.cpp.

TEST ( Duration  ,
Comparitors   
)

Definition at line 236 of file time.cpp.

TEST ( Time  ,
DontMungeStreamState   
)

Definition at line 222 of file time.cpp.

TEST ( Time  ,
SecNSecConstructor   
)

Definition at line 215 of file time.cpp.

TEST ( Time  ,
OperatorMinusEquals   
)

Definition at line 194 of file time.cpp.

TEST ( Time  ,
OperatorPlusEquals   
)

Definition at line 173 of file time.cpp.

TEST ( Time  ,
OperatorMinus   
)

Definition at line 152 of file time.cpp.

TEST ( Time  ,
OperatorPlus   
)

Definition at line 131 of file time.cpp.

TEST ( Time  ,
ToFromDouble   
)

Definition at line 117 of file time.cpp.

TEST ( Time  ,
Comparitors   
)

Definition at line 84 of file time.cpp.

TEST ( Time  ,
size   
)

Definition at line 78 of file 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 40 of file time.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


test_rostime
Author(s): Josh Faust
autogenerated on Sat Mar 2 13:25:03 2013