| blib/lib/Mojolicious/Plugin/PubSub/WebSocket.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 14 | 85.7 |
| line | true | false | branch |
|---|---|---|---|
| 38 | 0 | 9 | unless exists $c->psws_clients->{$id} |
| 40 | 6 | 3 | if (exists $client->{'channel'}) |
| 67 | 18 | 9 | if ($event eq "listen") |
| 69 | 0 | 18 | unless $ch |
| 72 | 1 | 17 | if $pch |
| 76 | 22 | 5 | if (my $res_f = $syn->lookup->{$req->{'t'}}{'reply'}) |
| 78 | 3 | 19 | if ($event eq "notify") |