Branch Coverage

blib/lib/Chemistry/File/XYZ.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
97 1 0 if ($lines[0] =~ /^\s*\d+\s*$/)
101 0 1 unless ($lines[0] =~ /^\s*([A-Z][a-z]?|\d{1,3})([,\s]+[eE\d.+-]+){3}/)
104 0 1 unless $n_atoms
111 0 10 if $i > $n_atoms
115 1 9 $elem =~ /^\d+$/ ? :
140 1 1 if $opts{'count'}
141 1 1 if ($opts{'name'})
142 1 0 defined $mol->name ? :
149 10 10 $opts{'symbol'} ? :