MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / MakeFilePath

Function MakeFilePath

lib/mdflib/mdflib_test/src/testiostream.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace {
15 std::string MakeFilePath(const std::string_view& filename) {
16 try {
17 path temp_path = temp_directory_path();
18 temp_path.append("test");
19 temp_path.append("iostreams");
20 create_directories(temp_path);
21
22 temp_path.append(filename);
23 remove(temp_path);
24 return temp_path.string();
25 } catch( const std::exception& err) {
26 std::cout << "Error: " << err.what() << std::endl;
27 }
28 return {};
29 }
30}
31
32namespace mdf::test {

Callers 1

TESTFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected