MCPcopy Create free account
hub / github.com/canonical/multipass / test_data_path

Method test_data_path

tests/path.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace mpt = multipass::test;
26
27QString mpt::test_data_path()
28{
29 QDir dir{QCoreApplication::applicationDirPath()};
30 const auto test_data_dir_exists = dir.cd("test_data");
31 if (!test_data_dir_exists)
32 throw std::runtime_error("could not find test_data directory");
33 return QDir::toNativeSeparators(dir.path()) + QDir::separator();
34}
35
36QString mpt::test_data_path_for(const char* file_name)
37{

Callers

nothing calls this directly

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected