Condition Coverage

blib/lib/SockJS/Connection.pm
Criterion Covered Total %
condition 20 31 64.5


and 3 conditions

line !l l&&!r l&&r condition
138 0 0 24 defined $message and $message ne ''
140 15 2 7 $self->is_connected || $self->is_closed and not $self->is_reconnecting
193 0 3 50 $self->is_connected and not $self->is_reconnecting
3 36 14 $self->is_connected and not $self->is_reconnecting and @{$self->{'messages'};}
201 1 0 1 $self->{'messages'}[0] and substr($self->{'messages'}[0], 0, 1) eq $type

or 2 conditions

line l !l condition
13 0 39 $params{'type'} || ''
14 0 39 $params{'close_cb'} || sub { }
15 0 39 $params{'write_cb'} || sub { }
158 0 4 $code ||= 3000
159 0 4 $message ||= 'Get away!'

or 3 conditions

line l !l&&r !l&&!r condition
140 9 0 15 $self->is_connected || $self->is_closed
157 3 4 0 $self->{'close_message'} ||= do { $code ||= 3000; $message ||= 'Get away!'; [int $code, $message] }