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

Function TEST_F

test/brpc_nova_pbrpc_protocol_unittest.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166};
167
168TEST_F(NovaTest, process_request_failed_socket) {
169 brpc::nshead_t head;
170 memset(&head, 0, sizeof(head));
171 brpc::policy::MostCommonMessage* msg = MakeRequestMessage(head);
172 _socket->SetFailed();
173 ProcessMessage(brpc::policy::ProcessNsheadRequest, msg, false);
174 ASSERT_EQ(0ll, _server._nerror_bvar.get_value());
175 CheckEmptyResponse();
176}
177
178TEST_F(NovaTest, process_request_logoff) {
179 brpc::nshead_t head;

Callers

nothing calls this directly

Calls 14

SerializeRequestDefaultFunction · 0.85
PackNovaRequestFunction · 0.85
ParseNsheadMessageFunction · 0.85
set_correlation_idMethod · 0.80
call_idMethod · 0.80
ErrorTextMethod · 0.80
SetFailedMethod · 0.45
get_valueMethod · 0.45
FailedMethod · 0.45
messageMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected