MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / make_temp_root

Function make_temp_root

tests/unittests/test_server_config.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 if (!condition) {
16 throw std::runtime_error(message);
17 }
18}
19
20std::filesystem::path make_temp_root() {
21 const auto root = std::filesystem::temp_directory_path() / "audiocpp_server_config_test";
22 std::error_code ec;
23 std::filesystem::remove_all(root, ec);
24 std::filesystem::create_directories(root);
25 return root;
26}

Calls

no outgoing calls

Tested by

no test coverage detected