Branch Coverage

blib/lib/Net/BEEP/Lite/Message.pm
Criterion Covered Total %
branch 63 72 87.5


line true false branch
152 7 28 if (/^Type$/i)
156 4 24 if (/^Msgno$/i)
160 1 23 if (/^Ansno$/i)
164 7 16 if (/^Channel$/i)
168 1 15 if (/^Payload$/i)
172 5 10 if (/^Content$/i)
176 2 8 if (/^Content.?Type$/i)
180 1 7 if (/^Content.?Encoding$/i)
184 3 4 if (/^Frame$/i)
192 2 2 if (/^Debug$/i)
196 2 0 if (/^Trace$/i)
220 8 10 if $val
234 5 19 if defined $val
243 1 8 if defined $val
269 0 19 if defined $val
298 1 1 unless $$self{'content_type'}
312 1 1 unless $$self{'content_encoding'}
341 4 27 if (not $$self{'content'} and $$self{'payload'}) { }
5 41 elsif (not $$self{'payload'} and $$self{'content'}) { }
366 0 2 unless $header =~ /^(\S+):\s*(\S.*$)/
367 1 1 if ($1 eq 'Content-Type') { }
1 0 elsif ($1 eq 'Content-Transfer-Encoding') { }
387 2 3 if ($ct and $ct ne 'application/octet-stream')
391 1 4 if ($ce and $ce ne 'binary')
413 0 3 if (not $$self{'payload'} and $$self{'content'})
421 3 0 if $content
433 1 3 unless $$self{'generated_first_frame'}
437 1 2 $remainder > 0 ? :
457 0 10 unless defined $self->msgno
460 0 10 if $max_size == 0
466 2 8 if $$self{'generated_first_frame'} and $remainder <= 0
473 4 4 if ($remainder > $max_size) { }
474 0 4 if $$self{'debug'}
519 6 1 unless ($block and $block =~ /^Content-Type:/im)
527 1 2 unless $line
540 3 2 unless @headers