|
std::list< bfs::path > | paths |
|
Definition at line 15 of file test_compressed_file.cpp.
◆ temp_file_fixture() [1/2]
temp_file_fixture::temp_file_fixture |
( |
| ) |
|
|
inline |
◆ ~temp_file_fixture() [1/2]
temp_file_fixture::~temp_file_fixture |
( |
| ) |
|
|
inline |
◆ temp_file_fixture() [2/2]
temp_file_fixture::temp_file_fixture |
( |
| ) |
|
|
inline |
◆ ~temp_file_fixture() [2/2]
temp_file_fixture::~temp_file_fixture |
( |
| ) |
|
|
inline |
◆ create_temp_file() [1/3]
std::string temp_file_fixture::create_temp_file |
( |
const std::string & | contents | ) |
|
|
inline |
Definition at line 26 of file test_compressed_file.cpp.
26 {
27 auto path = bfs::temp_directory_path() / bfs::unique_path();
28 auto os = bfs::ofstream(
path, std::ios_base::out);
31 return paths.emplace_back(std::move(
path)).generic_string();
32 }
wraps boost::filesystem::path to provide platform independent path manipulation.
◆ create_temp_file() [2/3]
std::string temp_file_fixture::create_temp_file |
( |
const std::string & | contents | ) |
|
|
inline |
Definition at line 26 of file test_configuration_utils.cpp.
26 {
27 auto path = bfs::temp_directory_path() / bfs::unique_path();
28 auto os = bfs::ofstream(
path, std::ios_base::out);
31 return paths.emplace_back(std::move(
path)).generic_string();
32 }
◆ create_temp_file() [3/3]
std::string temp_file_fixture::create_temp_file |
( |
const void * | data, |
|
|
size_t | size ) |
|
inline |
Definition at line 34 of file test_compressed_file.cpp.
34 {
35 auto path = bfs::temp_directory_path() / bfs::unique_path();
36 auto os = bfs::ofstream(
path, std::ios_base::out|std::ios_base::binary);
37 if (data && size)
38 os.write(
reinterpret_cast<const char*
>(data), size);
40 return paths.emplace_back(std::move(
path)).generic_string();
41 }
◆ paths
std::list< bfs::path > temp_file_fixture::paths |
The documentation for this struct was generated from the following files: