MCPcopy Create free account
hub / github.com/apache/brpc / RdmaTest

Method RdmaTest

test/brpc_rdma_unittest.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120class RdmaTest : public ::testing::Test {
121protected:
122 RdmaTest() {
123 butil::ip_t ip;
124 EXPECT_EQ(0, butil::str2ip(g_ip.c_str(), &ip));
125 butil::EndPoint ep(ip, PORT);
126 g_ep = ep;
127 EXPECT_EQ(0, _server_list.save(butil::endpoint2str(g_ep).c_str()));
128 _naming_url = std::string("File://") + _server_list.fname();
129 _server.AddService(&_svc, SERVER_DOESNT_OWN_SERVICE);
130 }
131 ~RdmaTest() { }
132
133 virtual void SetUp() { }

Callers

nothing calls this directly

Calls 6

str2ipFunction · 0.85
endpoint2strFunction · 0.85
saveMethod · 0.80
fnameMethod · 0.80
AddServiceMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected