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

Function CreateTestFile

lib/mdflib/mdflib_test/src/testmdfwriter.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace {
16 std::string CreateTestFile(const std::string& filename) {
17 try {
18 path fullname = temp_directory_path();
19 fullname.append("test");
20 fullname.append("mdf");
21 fullname.append("writer");
22 create_directories(fullname);
23 fullname.append(filename);
24 remove(fullname);
25 return fullname.string();
26 } catch (const std::exception& err) {
27 std::cout << "Filename error. File: " << filename
28 << ", Error: " << err.what() << std::endl;
29
30 }
31 return {};
32 }
33}
34
35namespace mdf::test {

Callers 1

TESTFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected