MCPcopy Create free account
hub / github.com/ceph/ceph / SetUp

Method SetUp

src/test/admin_socket.cc:364–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 signal(sig2.sig, SIG_DFL);
363 }
364 void SetUp() override
365 {
366 std::string path = get_rand_socket_path();
367 asock = std::make_unique<AdminSocket>(g_ceph_context);
368 asock_client = std::make_unique<AdminSocketClient>(path);
369 ASSERT_TRUE(asock->init(path));
370 sig1.count = 0;
371 sig2.count = 0;
372 }
373 void TearDown() override
374 {
375 AdminSocketTest(asock.get()).shutdown();

Callers

nothing calls this directly

Calls 2

get_rand_socket_pathFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected