Condition Coverage

blib/lib/Protocol/WebSocket/Message.pm
Criterion Covered Total %
condition 15 21 71.4


and 3 conditions

line !l l&&!r l&&r condition
107 10 197 283 not $self->is_state('body') and defined(my $line = $self->_get_line)
185 0 0 197 defined $name and defined $value

or 2 conditions

line l !l condition
20 19 92 $self->{'version'} ||= ''
24 7 104 $self->{'fields'} ||= {}
28 7 104 $self->{'cookies'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
26 0 111 0 $self->{'max_message_size'} ||= $MAX_MESSAGE_SIZE
95 0 15 0 $self->{'checksum'} ||= $checksum
130 27 8 9 &readonly($_[0]) or ref $_[0]