Branch Coverage

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


line true false branch
26 0 1 unless $type eq "websocket"
44 3 0 if ($self->can('on_connect')) { }
52 2 1 if ($self->can("on_disconnect"))
61 2 1 if ($self->can('on_receive')) { }
64 0 2 if ($encoding eq 'json') { }
0 2 elsif ($encoding eq 'bytes') { }
86 0 3 if $@