Branch Coverage

blib/lib/FLV/Body.pm
Criterion Covered Total %
branch 33 56 58.9


line true false branch
60 31 16249 if ($file->at_end)
75 0 19249 unless $$a{'start'} <=> $$b{'start'}
112 0 17 unless print {$filehandle;} "\000\000\000\000"
113 0 17 unless $$self{'tags'}
119 13 4 if ($tag->isa('FLV::MetaTag') and defined $tag->get_value('keyframes') || defined $tag->get_value('filesize'))
128 0 1466 unless ($size)
157 72 7622 if ($tag->isa('FLV::VideoTag') and $tag->is_keyframe)
162 0 7694 unless ($size)
170 0 13 unless close $media_fh
172 0 13 unless ($success)
179 0 0 unless ($size)
200 0 13 unless close $meta_fh
209 26 0 if ($keyframes)
220 26 0 if ($size)
224 0 26 unless close $try_fh
231 13 13 if ($meta_size == -s $meta_filename)
254 0 26 unless open my $fh, '<', $filename
255 0 26 unless binmode $fh
261 0 26 unless close $fh
301 1 76 unless $$self{'tags'}
345 298 572 if $_->isa('FLV::VideoTag')
385 0 5 unless my $tag = $$self{'tags'}[-1]
408 0 70 unless $$self{'tags'}
412 70 0 if defined $value
423 23 52 unless (@metatags)
441 94 351 if (defined $meta->get_value($key))
494 0 0 if ($tag->isa('FLV::VideoTag')) { }
0 0 elsif ($tag->isa('FLV::AudioTag')) { }