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

Function TEST_F

test/brpc_public_pbrpc_protocol_unittest.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199};
200
201TEST_F(PublicPbrpcTest, process_request_failed_socket) {
202 brpc::policy::PublicPbrpcRequest meta;
203 brpc::policy::RequestBody* body = meta.add_requestbody();
204 body->set_service("EchoService");
205 body->set_method_id(0);
206 body->set_id(0);
207 brpc::policy::MostCommonMessage* msg = MakeRequestMessage(&meta);
208 _socket->SetFailed();
209 ProcessMessage(brpc::policy::ProcessNsheadRequest, msg, false);
210 ASSERT_EQ(0ll, _server._nerror_bvar.get_value());
211 CheckResponseCode(true, 0);
212}
213
214TEST_F(PublicPbrpcTest, process_request_logoff) {
215 brpc::policy::PublicPbrpcRequest meta;

Callers

nothing calls this directly

Calls 13

PackPublicPbrpcRequestFunction · 0.85
ParseNsheadMessageFunction · 0.85
call_idMethod · 0.80
ErrorCodeMethod · 0.80
SetFailedMethod · 0.45
get_valueMethod · 0.45
FailedMethod · 0.45
messageMethod · 0.45
methodMethod · 0.45

Tested by

no test coverage detected