| lib/PAGI/App/WebSocket/Broadcast.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 1 | 24 | 4.1 |
| line | true | false | branch |
|---|---|---|---|
| 40 | 0 | 0 | if $scope->{'type'} ne "websocket" |
| 56 | 0 | 0 | if ($event->{'type'} eq 'websocket.receive') { } |
| 0 | 0 | elsif ($event->{'type'} eq 'websocket.disconnect') { } | |
| 63 | 0 | 0 | if $id eq $client_id and not $echo_self |
| 66 | 0 | 0 | if ($is_text) { } |
| 79 | 0 | 0 | if ($@) |
| 91 | 0 | 0 | if not keys %{$channels{$channel}{"clients"};} |
| 99 | 0 | 0 | unless $channels{$channel} |
| 107 | 0 | 0 | if ($is_text) { } |
| 113 | 0 | 0 | if $@ |
| 122 | 0 | 1 | if ($channel) |
| 123 | 0 | 0 | unless $channels{$channel} |