Branch Coverage

blib/lib/Video/Dumper/QuickTime.pm
Criterion Covered Total %
branch 58 142 40.8


line true false branch
121 0 1 unless exists $$self{'noise'}
137 0 1 if exists $param{'progress'}
140 0 1 unless defined $filename
142 0 1 unless -f $filename
147 0 1 unless open $$self{'handle'}, '<', $$self{'filename'}
155 1 0 if $$self{'handle'}
176 0 1 if $@ and $@ ne "end\n"
237 104 434 if defined $offset
240 0 538 unless defined $n
241 1 537 unless $n
242 0 537 unless $n == $len
244 0 537 if (defined $$self{'progress'})
247 0 0 if ($$self{'nextUpdate'} >= $$self{'parsedSize'})
270 593 224 if $lastChar eq "\n"
295 23 11 unless exists $$dataRef{$attrib}
296 7 4 unless defined $regexp
297 2 2 if $$dataRef{$attrib} =~ /$regexp/
319 7 0 $dataRef ? :
373 3 56 if (not defined $len or $len == 0)
378 0 56 if $key =~ /[\x00-\x1f]/
382 0 56 unless (length $key)
389 46 10 $self->can($name) ? :
396 50 6 if ($self->can($member)) { }
402 4 2 $len > 24 ? :
6 0 if $len > 8
403 0 6 if (not $$self{'unknownAtoms'}{$key}++ and $$self{'noise'})
722 2 0 $scale ? :
1094 0 0 if ($parentType eq 'imag') { }
1183 0 0 if ($actionStr =~ /$atoms/x) { }
0 0 elsif ($actionStr =~ /$time/x) { }
0 0 elsif ($actionStr =~ /$flags/x) { }
0 0 elsif ($actionStr =~ /$fixed/x) { }
0 0 elsif ($actionStr =~ /$fixedFixedBool/x) { }
0 0 elsif ($actionStr =~ /$long/x) { }
0 0 elsif ($actionStr =~ /$name/x) { }
0 0 elsif ($actionStr =~ /$quadFloat/x) { }
0 0 elsif ($actionStr =~ /$rgnHandle/x) { }
0 0 elsif ($actionStr =~ /$short/x) { }
1201 0 0 if ($paramID == 1) { }
1216 0 0 if $$self{'noise'} > 1
1431 0 40 if ($type =~ /sprt|moov/) { }
20 20 elsif ($type eq 'vide') { }
1436 0 20 if $$self{'noise'} and $$self{'noise'} > 1
1536 0 2 if ($sampleSize) { }
1582 5 0 $scale ? :
1621 2 0 $scale ? :
1679 1 0 if ($parent eq 'minf') { }
1780 0 0 unless defined $actionStr
1815 0 0 if ($parentType eq 'oprn') { }
1831 0 0 if ($parentType eq 'oprn') { }
1969 0 0 $interval ? :
1971 0 0 if $interval == 4294967295
2088 0 6 $len > 16 ? :
2152 0 0 unless defined $flagBits
2155 0 0 if $flags & 1
2156 0 0 if $flags & 2
2157 0 0 if $flags & 4
2158 0 0 if $flags & 8
2171 0 0 unless defined $gMode
2199 1 0 unless defined $red
2200 1 0 unless defined $green
2201 1 0 unless defined $blue
2221 1 0 unless defined $gMode
2256 1 0 if (exists $modes{$gMode}) { }
2273 8 2 unless defined $stamp
2277 0 10 $^O =~ /MSWin32/ ? :
2281 0 10 $^O =~ /Mac/ ? :
2296 2 1 unless defined $matrix
2304 6 3 if $_ != 3
2382 0 0 if ($thing =~ /^([^\x00]*)\x00\Z/) { }
0 0 elsif ($thing =~ /[\x00-\x1f]/) { }