Condition Coverage

lib/Chemistry/OpenSMILES/Parser.yp
Criterion Covered Total %
condition 53 60 88.3


and 3 conditions

line !l l&&!r l&&r condition
133 521 18 180 &is_aromatic($_[1]{'last'}) and &is_aromatic($_[2])
183 377 0 2 $_[0]{'USER'}{'OPTIONS'}{'report_unnecessary_dot_usage'} and $_[3]{'first'}{'index'} != $_[3]{'last'}{'index'}
195 329 25 25 &is_aromatic($_[1]{'last'}) and &is_aromatic($_[3]{'first'})
209 45 0 1 $_[0]{'USER'}{'OPTIONS'}{'report_unnecessary_dot_usage'} and $_[4]{'first'}{'index'} != $_[4]{'last'}{'index'}
270 8 1 1 ${$self->{'TOKEN'};} eq "" and grep {$_ eq "(" if defined $_ and not ref $_;} map({$_->[1];} @{$$self{"STACK"};})
271 2 3 2 defined $_ and not ref $_
295 3188 323 0 not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'}
329 230 3 2 $atom->{'symbol'} eq lc $atom->{'symbol'} and not $atom->{'symbol'} =~ /^(as|se|[bcnops])$/
418 316 97 923 $_ ne ':' && exists $Chemistry::OpenSMILES::Parser::bond_symbol_to_order{$_}
478 116 2 13 $bond and $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'}
2 13 0 $bond and $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} and !($bond =~ m[^[\\/]$]) && $bond ne $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} || $bond eq '\\' && $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} ne '/' || $bond eq '/' && $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} ne '\\'
490 112 16 2 $bond and not defined $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'}
498 18 67 44 not $bond and &is_aromatic($ring_atom)
85 4 40 not $bond and &is_aromatic($ring_atom) and &is_aromatic($atom)
501 71 3 55 $bond and $bond ne "-"
511 125 0 4 &is_chiral($ring_atom) and $ring_atom->{'chirality_neighbours'}

or 3 conditions

line l !l&&r !l&&!r condition
329 3 1 235 $atom->{'symbol'} eq "*" or $atom->{'symbol'} eq "Db"
1 4 228 $atom->{'symbol'} eq "Ha" or not "Chemistry::Elements"->new($atom->{'symbol'})
373 4 261 1521 $self->YYData->{'INPUT'} =~ s/^%([0-9]{2})// or $self->YYData->{'INPUT'} =~ s/^([0-9])//
478 0 0 12 !($bond =~ m[^[\\/]$]) && $bond ne $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} || $bond eq '\\' && $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} ne '/' || $bond eq '/' && $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'} ne '\\'