Condition Coverage

lib/PAGI/Test/WebSocket.pm
Criterion Covered Total %
condition 16 28 57.1


and 3 conditions

line !l l&&!r l&&r condition
92 15 19 19 @{$self->{'_pending_receives'};} and @{$self->{'send_queue'};}
99 20 14 0 $self->{'closed'} and @{$self->{'_pending_receives'};}
154 0 0 10 $event->{'type'} eq "websocket.send" and exists $event->{'text'}
174 0 0 1 $event->{'type'} eq "websocket.send" and exists $event->{'bytes'}

or 2 conditions

line l !l condition
47 0 0 $self->{'close_code'} // 1000
68 2 0 $event->{'code'} // 1000
69 0 2 $event->{'reason'} // ""
101 0 0 $self->{'close_code'} // 1000
149 1 10 $timeout //= 5
169 0 1 $timeout //= 5
202 1 11 $code //= 1000
203 1 11 $reason //= ""