Branch Coverage

lib/PAGI/App/WebSocket/Echo.pm
Criterion Covered Total %
branch 11 14 78.5


line true false branch
36 0 4 if $scope->{'type'} ne "websocket"
41 1 3 if $on_connect
47 2 4 if ($event->{'type'} eq 'websocket.receive') { }
4 0 elsif ($event->{'type'} eq 'websocket.disconnect') { }
49 1 1 if (exists $event->{'text'}) { }
1 0 elsif (exists $event->{'bytes'}) { }
61 1 3 if $on_disconnect