| 31 | } |
| 32 | |
| 33 | TEST(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 | |
| 43 | TEST(FileUtil, FileExists) |
| 44 | { |
nothing calls this directly
no test coverage detected