Branch Coverage

blib/lib/Bio/ASN1/Sequence.pm
Criterion Covered Total %
branch 55 78 70.5


line true false branch
123 0 1 if ref $class
126 1 1 if $$self{$_}
127 1 1 if $$self{$_}
145 0 0 if $value > 0
176 0 1 unless $input
178 0 1 unless $$self{'filename'}
179 1 0 unless $$self{'linenumber'} and $noreset
186 0 1 if ($@)
188 0 0 if (not $@ =~ /^Data Error:/) { }
220 0 1 unless open IN, $filename or $! =~ /too large/i and open IN, "cat $filename |"
253 0 1 unless $$self{'fh'}
258 1 1 unless /\S/
259 0 1 /^\s*Seq-entry ::= set ({.*)/is ? :
273 238 384 if ($$self{'input'} =~ /\G[ \t]*,?[ \t]*\n/cg)
278 104 280 if ($$self{'input'} =~ /\G[ \t]*}/cg) { }
20 260 elsif ($$self{'input'} =~ /\G[ \t]*{/cg) { }
258 2 elsif ($$self{'input'} =~ /\G[ \t]*([\w-]+)(\s*)/cg) { }
1 1 elsif ($$self{'input'} =~ /\G[ \t]*"((?:[^"]|"")*)"(?=\s*[,}])/cg) { }
280 0 104 if (not $$self{'depth'}-- and $$self{'input'} =~ /\S/)
299 132 126 if ($$self{'input'} =~ /\G"((?:[^"]|"")*)"(?=\s*[,}])/cg and ++$tmp or $$self{'input'} =~ /\G'([^']+)'\s*H/cig and ++$tmp1 or $$self{'input'} =~ /\G([\w-]+)(?=\s*[,}])/cg) { }
84 42 elsif ($$self{'input'} =~ /\G{/cg) { }
0 42 elsif ($$self{'input'} =~ /\G(?=[,}])/cg) { }
304 66 66 if ($tmp) { }
1 65 elsif ($tmp1) { }
316 0 132 if (ref $$data{$id}) { }
0 132 elsif ($$data{$id}) { }
331 42 216 if ($flag)
333 0 42 if (not $$self{'depth'}-- and $$self{'input'} =~ /\S/)
351 0 1 if ($pos != $len and $$self{'input'} =~ /\G\s*\S/cg) { }
0 1 elsif ($$self{'depth'} > 0) { }
0 1 elsif ($$self{'depth'} < 0) { }
444 1 254 unless $flag
445 0 255 if $flag == 3 or not ref $ref
446 132 123 if (ref $ref ne 'ARRAY') { }
450 0 132 if $@
456 115 14 if $flag == 2 and ref $$tmp[0] ne 'ARRAY'
460 122 132 if ref $$ref{$key}
476 132 1 if ref $item
496 1 0 if ($filehandle)