MCPcopy Create free account
hub / github.com/baidu/babylon / SetUp

Method SetUp

test/logging/test_rolling_file_object.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12struct RollingFileObjectTest : public ::testing::Test {
13 virtual void SetUp() override {
14 directory = "log_" + ::std::to_string(getpid());
15 ::std::filesystem::remove_all(directory);
16 rolling_object.set_directory(directory);
17 rolling_object.set_file_pattern("name.%Y%m%d-%H%M%S");
18 object = &rolling_object;
19 }
20
21 virtual void TearDown() override {
22 ::std::filesystem::remove_all(directory);

Callers

nothing calls this directly

Calls 2

set_directoryMethod · 0.80
set_file_patternMethod · 0.80

Tested by

no test coverage detected