Branch Coverage

blib/lib/FLV/Splice.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
90 8 4 if (ref $infile and $infile->isa('FLV::File')) { }
100 7 5 if ($$self{'flv'}) { }
103 0 7 if (($$self{'flv'}->get_header->has_video || 0) != ($flv->get_header->has_video || 0))
108 0 7 if (($$self{'flv'}->get_header->has_audio || 0) != ($flv->get_header->has_audio || 0))
128 1788 3432 if ($tag->isa('FLV::VideoTag')) { }
3420 12 elsif ($tag->isa('FLV::AudioTag')) { }
130 5 1783 if (not $$self{'nvideo'}++) { }
0 1783 elsif ($$tag{'codec'} != $$self{'video_codec'}) { }
142 5 3415 if (not $$self{'naudio'}++) { }
0 3415 elsif ($$tag{'format'} != $$self{'audio_codec'}) { }
154 0 0 1 < $$self{'naudio'} ? :
5 0 1 < $$self{'nvideo'} ? :
159 12 0 $$self{'nvideo'} ? :
178 0 5 unless ($outfh)