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

Method TestAddBuiltinService

test/brpc_server_unittest.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 virtual void TearDown() {};
203
204 void TestAddBuiltinService(
205 const google::protobuf::ServiceDescriptor* conflict_sd) {
206 brpc::Server server;
207 EvilService evil(conflict_sd);
208 EXPECT_EQ(0, server.AddServiceInternal(
209 &evil, false, brpc::ServiceOptions()));
210 EXPECT_EQ(-1, server.AddBuiltinServices());
211 }
212};
213
214TEST_F(ServerTest, sanity) {

Callers

nothing calls this directly

Calls 3

ServiceOptionsClass · 0.85
AddServiceInternalMethod · 0.80
AddBuiltinServicesMethod · 0.80

Tested by

no test coverage detected