| blib/lib/SockJS/Connection.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 27 | 16 | 0 | if (@_) |
| 37 | 6 | 0 | if (@_) |
| 91 | 0 | 7 | if $self->is_closed |
| 104 | 0 | 2 | if $self->is_closed |
| 109 | 1 | 1 | if (exists $self->{'on_abort'}) { } |
| 138 | 0 | 24 | unless defined $message and $message ne '' |
| 140 | 7 | 17 | if ($self->is_connected || $self->is_closed and not $self->is_reconnecting) { } |
| 156 | 7 | 0 | if ($self->type ne 'raw_websocket') |
| 181 | 7 | 45 | if (exists $$self{"on_$event"}) |
| 200 | 1 | 13 | if ($type eq 'a') |