Branch Coverage

src/panda/protocol/websocket/Error.cc
Criterion Covered Total %
branch 15 54 27.7


line true false branch
7 18 0 log::Module panda_log_module("Protocol::WebSocket", log::WARNING);
15 0 0 case errc::garbage_after_connect : return "garbage found after http request";
16 0 0 case errc::response_code_101 : return "handshake response code must be 101";
17 0 0 case errc::unsupported_version : return "client's Sec-WebSocket-Version is not supported";
18 0 0 case errc::connection_mustbe_upgrade : return "Connection must be 'Upgrade'";
19 2 0 case errc::upgrade_mustbe_websocket : return "Upgrade must be 'websocket'";
20 0 0 case errc::sec_accept_missing : return "Sec-WebSocket-Accept missing or invalid";
21 1 0 case errc::method_mustbe_get : return "method must be GET";
22 0 0 case errc::http_1_1_required : return "HTTP/1.1 or higher required";
23 0 0 case errc::body_prohibited : return "body must not present";
24 10 0 case errc::invalid_opcode : return "invalid opcode received";
25 12 0 case errc::control_fragmented : return "control frame can't be fragmented";
26 12 0 case errc::control_payload_too_big : return "control frame payload is too big";
27 4 0 case errc::not_masked : return "frame is not masked";
28 2 0 case errc::max_frame_size : return "max frame size exceeded";
29 18 0 case errc::close_frame_invalid_data : return "control frame CLOSE contains invalid data";
30 4 0 case errc::initial_continue : return "initial frame can't have opcode CONTINUE";
31 0 0 case errc::fragment_no_continue : return "fragment frame must have opcode CONTINUE";
32 2 0 case errc::max_message_size : return "max message size exceeded";
33 0 0 case errc::deflate_negotiation_failed : return "deflate parameters negotiation error";
34 1 0 case errc::control_frame_compression : return "compression of control frames is not allowed";
35 2 0 case errc::inflate_error : return "zlib::inflate error";
36 0 0 case errc::unexpected_rsv : return "RSV is set but no extension defining RSV meaning has been negotiated";
37 0 0 case errc::invalid_utf8 : return "invalid utf8 sequence";
39 0 0 return "unknown error";
42 18 0 }}}
18 0 }}}