Branch Coverage

blib/lib/Python/Bytecode.pm
Criterion Covered Total %
branch 59 100 59.0


line true false branch
15 2 0 if (ref $fh) { }
34 0 2 unless (exists $Python::Bytecode::data{$magic})
45 0 170 if (exists $$self{'stuff'}) { }
71 0 12 if (exists $$self{'stuff'}) { }
85 0 0 if (exists $$self{'stuff'}) { }
97 0 0 if (exists $$self{'stuff'}) { }
110 0 0 if (exists $$self{'stuff'}) { }
119 0 0 if (exists $$self{'stuff'}) { }
132 2 26 if $type eq 'c'
133 6 20 if ($cooked) { }
134 0 6 if $type eq 's'
135 2 4 if $type eq 'i'
136 2 2 if $type eq 'N'
138 12 8 if $type eq 's'
139 0 8 if $type eq 'i'
140 0 8 if $type eq 'N'
142 10 0 if ($type eq '(')
144 10 0 unless wantarray
147 0 0 if ($type eq 'u')
150 0 0 if ($type eq 'l')
153 0 0 if ($type eq 'f')
156 0 0 if ($type eq 'x')
166 4 6 unless $n
178 0 0 $n < 0 ? :
198 2 0 if ($$self{'code'} = $file->r_object)
199 2 0 if ($$self{'constants'} = $file->r_object(1))
200 2 0 if ($$self{'names'} = $file->r_object)
201 2 0 if ($$self{'varnames'} = $file->r_object)
202 2 0 if ($$self{'freevars'} = $file->r_object)
203 2 0 if ($$self{'cellvars'} = $file->r_object)
204 2 0 if ($$self{'filename'} = $file->r_object)
205 2 0 if ($$self{'name'} = $file->r_object)
368 49 243 if /^#/ or not /\S/
369 180 63 if (/^def_op\('([^']+)', (\d+)\)/) { }
41 22 elsif (/^(jrel|jabs|name)_op\('([^']+)', (\d+)\)/) { }
6 16 elsif (/(\w+)\s*=\s*(\d+)/) { }
16 0 elsif (/^has(\w+)\.append\((\d+)\)/) { }
407 18 10 if ($c >= $$bytecode{'c'}{'HAVE_ARGUMENT'})
411 4 14 if ($$bytecode{'has'}{'jrel'}{$c})
412 0 18 if ($$bytecode{'has'}{'jabs'}{$c})
424 2 2 if ($class =~ /String/ or $class =~ /Long/)
427 2 0 if ($class =~ /Undef/)
444 4 24 $labels{$offset} ? :
449 18 10 if ($c >= $$bytecode{'c'}{'HAVE_ARGUMENT'})
453 0 18 if $c == $$bytecode{'c'}{'EXTENDED_ARG'}
456 4 10 if ref $$self{'constants'}[$arg] and $$bytecode{'has'}{'const'} and $$bytecode{'has'}{'const'}{$c}
457 0 18 if $$bytecode{'has'}{'local'}{$c}
458 6 12 if $$bytecode{'has'}{'name'}{$c}
459 0 18 if $$bytecode{'has'}{'compare'}{$c}
460 4 14 if $$bytecode{'has'}{'jrel'}{$c}