Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
test_monitor_loop.cpp File Reference
#include <boost/test/included/unit_test.hpp>
#include <fc/variant_object.hpp>
#include <sysio/resource_monitor_plugin/file_space_handler.hpp>
Include dependency graph for test_monitor_loop.cpp:

Go to the source code of this file.

Classes

struct  space_handler_fixture
 
struct  space_handler_fixture::mock_space_provider
 

Macros

#define BOOST_TEST_MODULE   monitor_loop
 

Functions

 BOOST_FIXTURE_TEST_CASE (zero_loop, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (one_loop_1_secs_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (two_loops_1_sec_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (ten_loops_1_sec_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (one_loop_5_secs_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (two_loops_5_sec_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (ten_loops_5_sec_interval, space_handler_fixture)
 
 BOOST_FIXTURE_TEST_CASE (one_hundred_twenty_loops_1_sec_interval, space_handler_fixture)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   monitor_loop

Definition at line 1 of file test_monitor_loop.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/8]

BOOST_FIXTURE_TEST_CASE ( one_hundred_twenty_loops_1_sec_interval ,
space_handler_fixture  )

Definition at line 154 of file test_monitor_loop.cpp.

155 {
156 BOOST_TEST( test_loop_common(120, 1) );
157 }

◆ BOOST_FIXTURE_TEST_CASE() [2/8]

BOOST_FIXTURE_TEST_CASE ( one_loop_1_secs_interval ,
space_handler_fixture  )

Definition at line 124 of file test_monitor_loop.cpp.

125 {
126 BOOST_TEST( test_loop_common(1, 1) );
127 }

◆ BOOST_FIXTURE_TEST_CASE() [3/8]

BOOST_FIXTURE_TEST_CASE ( one_loop_5_secs_interval ,
space_handler_fixture  )

Definition at line 139 of file test_monitor_loop.cpp.

140 {
141 BOOST_TEST( test_loop_common(1, 5) );
142 }

◆ BOOST_FIXTURE_TEST_CASE() [4/8]

BOOST_FIXTURE_TEST_CASE ( ten_loops_1_sec_interval ,
space_handler_fixture  )

Definition at line 134 of file test_monitor_loop.cpp.

135 {
136 BOOST_TEST( test_loop_common(10, 1) );
137 }

◆ BOOST_FIXTURE_TEST_CASE() [5/8]

BOOST_FIXTURE_TEST_CASE ( ten_loops_5_sec_interval ,
space_handler_fixture  )

Definition at line 149 of file test_monitor_loop.cpp.

150 {
151 BOOST_TEST( test_loop_common(10, 5) );
152 }

◆ BOOST_FIXTURE_TEST_CASE() [6/8]

BOOST_FIXTURE_TEST_CASE ( two_loops_1_sec_interval ,
space_handler_fixture  )

Definition at line 129 of file test_monitor_loop.cpp.

130 {
131 BOOST_TEST( test_loop_common(2, 1) );
132 }

◆ BOOST_FIXTURE_TEST_CASE() [7/8]

BOOST_FIXTURE_TEST_CASE ( two_loops_5_sec_interval ,
space_handler_fixture  )

Definition at line 144 of file test_monitor_loop.cpp.

145 {
146 BOOST_TEST( test_loop_common(2, 5) );
147 }

◆ BOOST_FIXTURE_TEST_CASE() [8/8]

BOOST_FIXTURE_TEST_CASE ( zero_loop ,
space_handler_fixture  )

Definition at line 119 of file test_monitor_loop.cpp.

120 {
121 BOOST_TEST( test_loop_common(0, 1) );
122 }