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

Function TEST_F

be/src/util/simple-logger-test.cc:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65};
66
67TEST_F(SimpleLoggerTest, CreateDirectories) {
68 // Test that it can create multiple layers of subdirectories on initialization.
69 path multilevel_subdir = tmp_dir() / "a" / "b" / "c";
70 unique_ptr<SimpleLogger> logger = CreateSimpleLogger(multilevel_subdir);
71 EXPECT_OK(logger->Init());
72 logger.reset();
73
74 // Test that it also works if the directory already exists
75 logger = CreateSimpleLogger(tmp_dir());
76 EXPECT_OK(logger->Init());
77}
78
79TEST_F(SimpleLoggerTest, PreexistingFiles) {
80 // Test the reboot scenario where there are preexisting files

Callers

nothing calls this directly

Calls 6

SubstituteFunction · 0.85
AppendEntryMethod · 0.80
resetMethod · 0.65
InitMethod · 0.45
FlushMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected