Condition Coverage

blib/lib/Protocol/WebSocket/Frame.pm
Criterion Covered Total %
condition 28 41 68.2


and 3 conditions

line !l l&&!r l&&r condition
50 54 0 20 defined $self->{'type'} and defined $TYPES{$self->{'type'}}
180 1 196 2 $self->{'max_payload_size'} and $payload_len > $self->{'max_payload_size'}
206 23 173 1 @{$self->{'fragments'};} and $opcode & 8
245 2 1 1 $self->{'type'} and $self->{'type'} eq 'close'
252 4 75 2 $self->{'max_payload_size'} and length $self->{'buffer'} > $self->{'max_payload_size'}
259 72 0 7 $self->{'rsv'} and ref $self->{'rsv'} eq 'ARRAY'

or 2 conditions

line l !l condition
54 5 69 $self->{'version'} ||= 'draft-ietf-hybi-17'

or 3 conditions

line l !l&&r !l&&!r condition
58 0 65 0 $self->{'max_fragments_amount'} ||= $MAX_FRAGMENTS_AMOUNT
59 0 63 0 $self->{'max_payload_size'} ||= $MAX_PAYLOAD_SIZE
116 0 20 34 $self->version eq 'draft-hixie-75' or $self->version eq 'draft-ietf-hybi-00'
169 0 0 5 $Protocol::WebSocket::Frame::Config{'ivsize'} <= 4 or $Protocol::WebSocket::Frame::Config{'longsize'} < 8
0 0 5 $Protocol::WebSocket::Frame::Config{'ivsize'} <= 4 or $Protocol::WebSocket::Frame::Config{'longsize'} < 8 or $] < 5.01
242 0 4 81 $self->version eq 'draft-hixie-75' or $self->version eq 'draft-ietf-hybi-00'
290 1 6 0 $self->{'mask'} || (&MATH_RANDOM_SECURE() ? Math::Random::Secure::irand(4294967296) : int rand 4294967296)