Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
space_handler_fixture::mock_space_provider Struct Reference
Collaboration diagram for space_handler_fixture::mock_space_provider:

Public Member Functions

 mock_space_provider (space_handler_fixture &fixture)
 
int get_stat (const char *path, struct stat *buf) const
 
bfs::space_info get_space (const bfs::path &p, boost::system::error_code &ec) const
 

Public Attributes

space_handler_fixturefixture
 

Detailed Description

Definition at line 13 of file test_monitor_loop.cpp.

Constructor & Destructor Documentation

◆ mock_space_provider()

space_handler_fixture::mock_space_provider::mock_space_provider ( space_handler_fixture & fixture)
inline

Definition at line 14 of file test_monitor_loop.cpp.

Member Function Documentation

◆ get_space()

bfs::space_info space_handler_fixture::mock_space_provider::get_space ( const bfs::path & p,
boost::system::error_code & ec ) const
inline

Definition at line 22 of file test_monitor_loop.cpp.

22 {
23 return fixture.mock_get_space(p, ec);
24 }
const mie::Vuint & p
Definition bn.cpp:27
std::function< bfs::space_info(const bfs::path &p, boost::system::error_code &ec)> mock_get_space

◆ get_stat()

int space_handler_fixture::mock_space_provider::get_stat ( const char * path,
struct stat * buf ) const
inline

Definition at line 18 of file test_monitor_loop.cpp.

18 {
20 }
wraps boost::filesystem::path to provide platform independent path manipulation.
std::function< int(const char *path, struct stat *buf)> mock_get_stat
uint8_t buf[2048]

Member Data Documentation

◆ fixture

space_handler_fixture& space_handler_fixture::mock_space_provider::fixture

Definition at line 26 of file test_monitor_loop.cpp.


The documentation for this struct was generated from the following file: