#include <cmath>
#include <thread>
#include <gtest/gtest.h>
#include "bota_worker/Rate.hpp"
Go to the source code of this file.
|
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) |
|
#define RATE_TEST_TOL_BUILD_SERVER 0.007 |
#define RATE_TEST_TOL_LOCAL 0.001 |
void doSomething |
( |
const double |
duration | ) |
|
Simulate some processing which takes a certain amount of time.
- Parameters
-
duration | Processing duration in seconds. |
Definition at line 22 of file RateTest.cpp.
TEST |
( |
RateTest |
, |
|
|
Initialization |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
Reset |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
SleepWithEnforceRate |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
SleepWithoutEnforceRate |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
WarningsAndErrors |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
StatisticsWithEnforceRate |
|
|
) |
| |
TEST |
( |
RateTest |
, |
|
|
StatisticsWithoutEnforceRate |
|
|
) |
| |