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

Function TEST_F

test/brpc_sofa_pbrpc_protocol_unittest.cpp:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215};
216
217TEST_F(SofaTest, process_request_failed_socket) {
218 brpc::policy::SofaRpcMeta meta;
219 meta.set_type(brpc::policy::SofaRpcMeta::REQUEST);
220 meta.set_sequence_id(0);
221 meta.set_method("EchoService.Echo");
222 brpc::policy::MostCommonMessage* msg = MakeRequestMessage(meta);
223 _socket->SetFailed();
224 ProcessMessage(brpc::policy::ProcessSofaRequest, msg, false);
225 ASSERT_EQ(0ll, _server._nerror_bvar.get_value());
226 CheckResponseCode(true, 0);
227}
228
229TEST_F(SofaTest, process_request_logoff) {
230 brpc::policy::SofaRpcMeta meta;

Callers

nothing calls this directly

Calls 15

SerializeRequestDefaultFunction · 0.85
PackSofaRequestFunction · 0.85
ParseSofaMessageFunction · 0.85
call_idMethod · 0.80
set_error_codeMethod · 0.80
ErrorCodeMethod · 0.80
set_typeMethod · 0.45
set_methodMethod · 0.45
SetFailedMethod · 0.45
get_valueMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected