Branch Coverage

lib/Chemistry/File/InChI/Parser.yp
Criterion Covered Total %
branch 28 34 82.3


line true false branch
19 0 30 if ref $class
29 0 90 unless defined $layer2_id
30 0 90 if $layer1_id == $layer2_id
31 0 90 if $layer1_id > $layer2_id
252 0 30 if (not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'})
259 30 1412 if ($self->YYData->{'INPUT'} =~ s/^(InChI=1S?)//)
265 33 1379 if ($self->YYData->{'INPUT'} =~ s[^([/\.])([2-9]|[1-9][0-9]+)?(([A-Z][a-z]?\d*)+)][])
267 30 3 unless $count
272 30 73 if $element eq "H"
273 23 50 unless $count
281 30 3 if ($sep eq '/') { }
293 30 1349 if ($self->YYData->{'INPUT'} =~ s/^([hqt])//)
302 1319 30 if ($self->YYData->{'INPUT'} =~ s/^(.)//)
319 74 146 ref $b eq 'ARRAY' ? :
331 51 0 ref $atoms ? :
333 23 28 unless $count
349 2 599 unless (exists $atom_map->{$atom})