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

Method SetUp

test/logging/test_async_file_appender.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37struct AsyncFileAppenderTest : public ::testing::Test {
38 virtual void SetUp() override {
39 ASSERT_EQ(0, ::pipe(pipefd));
40 ::fcntl(pipefd[1], F_SETPIPE_SZ, 16 * 4096);
41 file_object.fd = pipefd[1];
42 }
43
44 virtual void TearDown() override {
45 ASSERT_EQ(0, close(pipefd[1]));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected