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

Method CallAfterRpc

test/brpc_channel_unittest.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192 }
193 static void CallAfterRpc(std::shared_ptr<CallAfterRpcObject> str,
194 brpc::Controller* cntl,
195 const google::protobuf::Message* req,
196 const google::protobuf::Message* res) {
197 const test::EchoRequest* request = static_cast<const test::EchoRequest*>(req);
198 const test::EchoResponse* response = static_cast<const test::EchoResponse*>(res);
199 str->Append("CallAfterRpcRespTest");
200 EXPECT_TRUE(nullptr != cntl);
201 EXPECT_TRUE(nullptr != request);
202 EXPECT_TRUE(nullptr != response);
203 }
204
205public:
206 using MockFuncType = void(google::protobuf::RpcController*,

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected