Branch Coverage

xsi/Error.xsi
Criterion Covered Total %
branch 56 112 50.0


line true false branch
5 18 0 Stash s(__PACKAGE__);
7 18 0 Stash ecstash("Protocol::WebSocket::Fast::Error", GV_ADD);
8 18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
18 0 xs::exp::create_constants(ecstash, {
414 18 xs::exp::create_constants(ecstash, {
0 0 xs::exp::create_constants(ecstash, {
9 18 0 {"garbage_after_connect", xs::out(make_error_code(errc::garbage_after_connect))},
10 18 0 {"unsupported_version", xs::out(make_error_code(errc::unsupported_version))},
11 18 0 {"response_code_101", xs::out(make_error_code(errc::response_code_101))},
12 18 0 {"connection_mustbe_upgrade", xs::out(make_error_code(errc::connection_mustbe_upgrade))},
13 18 0 {"upgrade_mustbe_websocket", xs::out(make_error_code(errc::upgrade_mustbe_websocket))},
14 18 0 {"sec_accept_missing", xs::out(make_error_code(errc::sec_accept_missing))},
15 18 0 {"method_mustbe_get", xs::out(make_error_code(errc::method_mustbe_get))},
16 18 0 {"http_1_1_required", xs::out(make_error_code(errc::http_1_1_required))},
17 18 0 {"body_prohibited", xs::out(make_error_code(errc::body_prohibited))},
18 18 0 {"invalid_opcode", xs::out(make_error_code(errc::invalid_opcode))},
19 18 0 {"control_fragmented", xs::out(make_error_code(errc::control_fragmented))},
20 18 0 {"control_payload_too_big", xs::out(make_error_code(errc::control_payload_too_big))},
21 18 0 {"not_masked", xs::out(make_error_code(errc::not_masked))},
22 18 0 {"max_frame_size", xs::out(make_error_code(errc::max_frame_size))},
23 18 0 {"close_frame_invalid_data", xs::out(make_error_code(errc::close_frame_invalid_data))},
24 18 0 {"initial_continue", xs::out(make_error_code(errc::initial_continue))},
25 18 0 {"fragment_no_continue", xs::out(make_error_code(errc::fragment_no_continue))},
26 18 0 {"max_message_size", xs::out(make_error_code(errc::max_message_size))},
27 18 0 {"deflate_negotiation_failed", xs::out(make_error_code(errc::deflate_negotiation_failed))},
28 18 0 {"control_frame_compression", xs::out(make_error_code(errc::control_frame_compression))},
29 18 0 {"inflate_error", xs::out(make_error_code(errc::inflate_error))},
30 18 0 {"unexpected_rsv", xs::out(make_error_code(errc::unexpected_rsv))},
31 18 0 {"invalid_utf8", xs::out(make_error_code(errc::invalid_utf8))},
32 18 0 });
33 18 0 xs::exp::autoexport(ecstash);
18 0 xs::exp::autoexport(ecstash);
35 18 0 s.add_const_sub("error_category", xs::out(&error_category));
18 0 s.add_const_sub("error_category", xs::out(&error_category));