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

Function TEST

SourceT/file_util_test.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33TEST(FileUtil, GetFileSize)
34{
35 const std::string path = GetTmpPathName();
36 std::cout << path << std::endl;
37 WriteDummyFile(path.c_str(), 42);
38 std::uintmax_t result;
39 ASSERT_TRUE(GetFileSize(path.c_str(), &result));
40 EXPECT_EQ(result, 42);
41}
42
43TEST(FileUtil, FileExists)
44{

Callers

nothing calls this directly

Calls 5

GetTmpPathNameFunction · 0.85
WriteDummyFileFunction · 0.85
GetFileSizeFunction · 0.85
FileExistsFunction · 0.85
ResizeFileFunction · 0.85

Tested by

no test coverage detected