Definition at line 12 of file test_add_file_system.cpp.
◆ file_space_handler_t
◆ add_file_system_fixture()
add_file_system_fixture::add_file_system_fixture |
( |
| ) |
|
|
inline |
◆ add_file_system()
void add_file_system_fixture::add_file_system |
( |
const bfs::path & | path_name | ) |
|
|
inline |
◆ is_threshold_exceeded()
bool add_file_system_fixture::is_threshold_exceeded |
( |
| ) |
|
|
inline |
◆ set_threshold()
void add_file_system_fixture::set_threshold |
( |
uint32_t | threshold, |
|
|
uint32_t | warning_threshold ) |
|
inline |
Definition at line 41 of file test_add_file_system.cpp.
41 {
43 }
void set_threshold(uint32_t new_threshold, uint32_t new_warning_threshold)
◆ test_add_file_systems_common()
void add_file_system_fixture::test_add_file_systems_common |
( |
std::vector< int > & | capacity, |
|
|
std::vector< int > & | available, |
|
|
std::vector< int > & | devs ) |
|
inline |
Definition at line 49 of file test_add_file_system.cpp.
49 {
50 mock_get_space = [ i = 0, capacity, available ](
const bfs::path&
p, boost::system::error_code& ec)
mutable -> bfs::space_info {
51 ec = boost::system::errc::make_error_code(errc::success);
52
54 rc.capacity = capacity[i];
55 rc.available = available[i];
56 i++;
57
59 };
60
62 buf->st_dev = devs[
j];
64
65 return 0;
66 };
67
69
70 for (size_t k = 0; k < capacity.size(); k++) {
72 }
73 }
wraps boost::filesystem::path to provide platform independent path manipulation.
void add_file_system(const bfs::path &path_name)
std::function< int(const char *path, struct stat *buf)> mock_get_stat
void set_threshold(uint32_t threshold, uint32_t warning_threshold)
std::function< bfs::space_info(const bfs::path &p, boost::system::error_code &ec)> mock_get_space
◆ ctx
boost::asio::io_context add_file_system_fixture::ctx |
◆ mock_get_space
std::function<bfs::space_info(const bfs::path& p, boost::system::error_code& ec)> add_file_system_fixture::mock_get_space |
◆ mock_get_stat
std::function<int(const char *path, struct stat *buf)> add_file_system_fixture::mock_get_stat |
◆ space_handler
The documentation for this struct was generated from the following file: