MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetTmpPathName

Function GetTmpPathName

SourceT/file_util_test.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::string GetTmpPathName(const char *suffix = ".tmp")
23{
24 const auto *current_test = ::testing::UnitTest::GetInstance()->current_test_info();
25 std::string result = "Test_";
26 result.append(current_test->test_case_name());
27 result += '_';
28 result.append(current_test->name());
29 result.append(suffix);
30 return result;
31}
32
33TEST(FileUtil, GetFileSize)
34{

Callers 1

TESTFunction · 0.85

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected