Branch Coverage

lib/PAGI/Endpoint/WebSocket.pm
Criterion Covered Total %
branch 9 14 64.2


line true false branch
23 0 3 unless $type eq "websocket"
43 3 0 if ($self->can('on_connect')) { }
51 1 2 if ($self->can("on_disconnect"))
60 1 2 if ($self->can('on_receive')) { }
63 0 1 if ($encoding eq 'json') { }
0 1 elsif ($encoding eq 'bytes') { }
85 0 3 if $@