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

Function TEST_F

test/logging/test_rolling_file_object.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30TEST_F(RollingFileObjectTest, file_first_create_when_get_trigger) {
31 object->check_and_get_file_descriptor();
32 {
33 ::std::filesystem::directory_iterator dir {directory};
34 ASSERT_EQ(1, ::std::distance(begin(dir), end(dir)));
35 }
36}
37
38TEST_F(RollingFileObjectTest, keep_file_dont_exceed_num) {
39 ::std::filesystem::create_directory(directory);

Callers

nothing calls this directly

Calls 6

set_max_file_numberMethod · 0.80
emplace_backMethod · 0.80
delete_expire_filesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected