Branch Coverage

blib/lib/Net/BEEP/Lite/Frame.pm
Criterion Covered Total %
branch 35 62 56.4


line true false branch
123 2 72 if (/^Header/i)
127 9 63 if (/^Payload/i)
130 11 61 if (/^Type/i)
134 10 51 if (/^Msgno/i)
138 10 41 if (/^More/i)
142 10 31 if (/^Seqno/i)
146 9 22 if (/^Ansno/i)
150 1 21 if (/^Ackno/i)
154 1 20 if (/^Window/i)
158 11 9 if (/^Channel/i)
165 9 0 if (/^Payload/i)
211 10 4 if $self->payload
237 1 1 $$self{'more'} eq '.' ? :
324 0 2 unless ($header)
335 0 2 if (not defined $$self{'type'}) { }
0 2 elsif ($$self{'type'} eq 'SEQ') { }
343 0 2 if (scalar @fields != 5 and scalar @fields != 6)
357 0 2 if $self->type eq 'ANS'
365 0 0 unless $type =~ /^(SEQ|MSG|RPY|ERR|ANS|NUL)$/
366 0 0 unless defined $self->channel_number
367 0 0 if ($type eq 'SEQ')
368 0 0 unless defined $self->ackno
369 0 0 unless defined $self->window
373 0 0 unless defined $self->msgno
374 0 0 unless $self->more
375 0 0 unless defined $self->seqno
376 0 0 unless defined $self->size
377 0 0 if $type eq 'ANS' and not defined $self->ansno
393 2 4 if ($self->type eq 'SEQ') { }
399 1 3 if $self->type eq 'ANS'
418 3 0 if ($self->payload and $self->type ne 'NUL' and $self->type ne 'SEQ')