Macros | Functions
RateTest.cpp File Reference
#include <cmath>
#include <thread>
#include <gtest/gtest.h>
#include "bota_worker/Rate.hpp"
Include dependency graph for RateTest.cpp:

Go to the source code of this file.

Macros

#define RATE_TEST_TOL   RATE_TEST_TOL_BUILD_SERVER
 
#define RATE_TEST_TOL_BUILD_SERVER   0.007
 
#define RATE_TEST_TOL_LOCAL   0.001
 

Functions

void doSomething (const double duration)
 
 TEST (RateTest, Initialization)
 
 TEST (RateTest, Reset)
 
 TEST (RateTest, SleepWithEnforceRate)
 
 TEST (RateTest, SleepWithoutEnforceRate)
 
 TEST (RateTest, WarningsAndErrors)
 
 TEST (RateTest, StatisticsWithEnforceRate)
 
 TEST (RateTest, StatisticsWithoutEnforceRate)
 

Macro Definition Documentation

#define RATE_TEST_TOL   RATE_TEST_TOL_BUILD_SERVER

Definition at line 16 of file RateTest.cpp.

#define RATE_TEST_TOL_BUILD_SERVER   0.007

Definition at line 13 of file RateTest.cpp.

#define RATE_TEST_TOL_LOCAL   0.001

Definition at line 12 of file RateTest.cpp.

Function Documentation

void doSomething ( const double  duration)

Simulate some processing which takes a certain amount of time.

Parameters
durationProcessing duration in seconds.

Definition at line 22 of file RateTest.cpp.

TEST ( RateTest  ,
Initialization   
)

Definition at line 27 of file RateTest.cpp.

TEST ( RateTest  ,
Reset   
)

Definition at line 47 of file RateTest.cpp.

TEST ( RateTest  ,
SleepWithEnforceRate   
)

Definition at line 66 of file RateTest.cpp.

TEST ( RateTest  ,
SleepWithoutEnforceRate   
)

Definition at line 158 of file RateTest.cpp.

TEST ( RateTest  ,
WarningsAndErrors   
)

Definition at line 218 of file RateTest.cpp.

TEST ( RateTest  ,
StatisticsWithEnforceRate   
)

Definition at line 236 of file RateTest.cpp.

TEST ( RateTest  ,
StatisticsWithoutEnforceRate   
)

Definition at line 297 of file RateTest.cpp.



bota_worker
Author(s):
autogenerated on Wed Mar 3 2021 03:09:10