Branch Coverage

blib/lib/Chemistry/File/PDB.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
130 3 3 if $fh->eof
136 1 2 unless $is_macro
141 3 420 if (/^TER/) { }
417 3 elsif (/^(?:HETATM|ATOM)/) { }
3 0 elsif (/^END(MDL)?/) { }
149 30 387 if (not $domain or $seq_n != $curr_residue)
151 20 10 if ($is_macro)
191 3 0 if $fname =~ /\.pdb$/i
193 0 0 unless open F, $fname
196 0 0 if (/^ATOM / or /^HETATM/)
208 1 0 if defined $mol->name
210 1 0 if ($mol->isa('Chemistry::MacroMol')) { }
215 0 10 unless defined $seq_n
221 139 0 unless defined $serial_n
239 0 0 if ($atom->name) { }
244 0 0 $i1 < 10 ? :
0 0 $i0 < 10 ? :
246 0 0 if $opts{'noid'}