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

Function TEST_F

test/brpc_hulu_pbrpc_protocol_unittest.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222};
223
224TEST_F(HuluTest, process_request_failed_socket) {
225 brpc::policy::HuluRpcRequestMeta meta;
226 meta.set_service_name("EchoService");
227 meta.set_method_index(0);
228 brpc::policy::MostCommonMessage* msg = MakeRequestMessage(meta);
229 _socket->SetFailed();
230 ProcessMessage(brpc::policy::ProcessHuluRequest, msg, false);
231 ASSERT_EQ(0ll, _server._nerror_bvar.get_value());
232 CheckResponseCode(true, 0);
233}
234
235TEST_F(HuluTest, process_request_logoff) {
236 brpc::policy::HuluRpcRequestMeta meta;

Callers

nothing calls this directly

Calls 15

SerializeRequestDefaultFunction · 0.85
PackHuluRequestFunction · 0.85
ParseHuluMessageFunction · 0.85
set_correlation_idMethod · 0.80
call_idMethod · 0.80
set_error_codeMethod · 0.80
ErrorCodeMethod · 0.80
SetFailedMethod · 0.45
get_valueMethod · 0.45
messageMethod · 0.45
FailedMethod · 0.45

Tested by

no test coverage detected