MCPcopy Create free account
hub / github.com/apache/impala / CreateFile

Function CreateFile

be/src/util/logging-support-test.cc:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using filesystem::path;
28
29void CreateFile(const path& p, time_t last_modified) {
30 EXPECT_TRUE(FileSystemUtil::CreateFile(p.string()).ok());
31 // We modify the timestamps to guarantee that they are unique.
32 filesystem::last_write_time(p, last_modified);
33 EXPECT_TRUE(filesystem::exists(p));
34}
35
36TEST(LoggingSupport, DeleteOldLogs) {
37 path dir = filesystem::unique_path();

Callers 5

TEST_PFunction · 0.85
TEST_FFunction · 0.85
InitMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

okMethod · 0.45

Tested by

no test coverage detected