| 166 | }; |
| 167 | |
| 168 | TEST_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 | |
| 178 | TEST_F(NovaTest, process_request_logoff) { |
| 179 | brpc::nshead_t head; |
nothing calls this directly
no test coverage detected