| blib/lib/Plack/Middleware/SocketIO/Connection.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 20 | 55.0 |
| line | true | false | branch |
|---|---|---|---|
| 68 | 0 | 0 | unless defined $type |
| 86 | 4 | 2 | unless $cb |
| 97 | 0 | 5 | unless defined $data |
| 135 | 0 | 0 | if $_->is_connected |
| 167 | 0 | 0 | if (ref $message) |
| 189 | 5 | 5 | if ($$self{'data'} =~ s/^~m~(\d+)~m~//) |
| 193 | 5 | 0 | if (length $message == $length) |
| 194 | 0 | 5 | if ($message =~ /^~h~(\d+)/) { } |
| 2 | 3 | elsif ($message =~ /^~j~(.*)/) { } | |
| 206 | 1 | 1 | if defined $json |