Branch Coverage

blib/lib/Bio/ASN1/EntrezGene.pm
Criterion Covered Total %
branch 55 76 72.4


line true false branch
137 0 1 if ref $class
140 1 1 if $$self{$_}
141 1 1 if $$self{$_}
159 0 0 if $value > 0
190 0 1 unless $input
192 0 1 unless $$self{'filename'}
193 1 0 unless $$self{'linenumber'} and $noreset
200 0 1 if ($@)
202 0 0 if (not $@ =~ /^Data Error:/) { }
234 0 1 unless open IN, $filename or $! =~ /too large/i and open IN, "cat $filename |"
267 0 1 unless $$self{'fh'}
272 1 1 unless /\S/
273 0 1 /^\s*Entrezgene ::= ({.*)/is ? :
287 979 1434 if ($$self{'input'} =~ /\G[ \t]*,?[ \t]*\n/cg)
292 337 1097 if ($$self{'input'} =~ /\G[ \t]*}/cg) { }
140 957 elsif ($$self{'input'} =~ /\G[ \t]*{/cg) { }
947 10 elsif ($$self{'input'} =~ /\G[ \t]*([\w-]+)(\s*)/cg) { }
9 1 elsif ($$self{'input'} =~ /\G[ \t]*"((?:[^"]|"")*)"(?=\s*[,}])/cg) { }
294 0 337 if (not $$self{'depth'}-- and $$self{'input'} =~ /\S/)
313 633 314 if ($$self{'input'} =~ /\G"((?:[^"]|"")*)"(?=\s*[,}])/cg and ++$tmp or $$self{'input'} =~ /\G([\w-]+)(?=\s*[,}])/cg) { }
197 117 elsif ($$self{'input'} =~ /\G{/cg) { }
0 117 elsif ($$self{'input'} =~ /\G(?=[,}])/cg) { }
317 202 431 if ($tmp)
323 5 628 if (ref $$data{$id}) { }
1 627 elsif ($$data{$id}) { }
338 117 830 if ($flag)
340 0 117 if (not $$self{'depth'}-- and $$self{'input'} =~ /\S/)
358 0 1 if ($pos != $len and $$self{'input'} =~ /\G\s*\S/cg) { }
0 1 elsif ($$self{'depth'} > 0) { }
0 1 elsif ($$self{'depth'} < 0) { }
449 1 661 unless $flag
450 0 662 if $flag == 3 or not ref $ref
451 367 295 if (ref $ref ne 'ARRAY') { }
455 0 367 if $@
461 273 87 if $flag == 2 and ref $$tmp[0] ne 'ARRAY'
465 294 626 if ref $$ref{$key}
481 367 16 if ref $item
501 1 0 if ($filehandle)