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 161 &is_aromatic($_[1]{'last'}) and &is_aromatic($_[2])
183 376 0 2 $_[0]{'USER'}{'OPTIONS'}{'report_unnecessary_dot_usage'} and $_[3]{'first'}{'index'} != $_[3]{'last'}{'index'}
195 329 24 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 3152 321 0 not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'}
329 229 3 2 $atom->{'symbol'} eq lc $atom->{'symbol'} and not $atom->{'symbol'} =~ /^(as|se|[bcnops])$/
418 270 97 919 $_ ne ':' && exists $Chemistry::OpenSMILES::Parser::bond_symbol_to_order{$_}
478 111 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 107 16 2 $bond and not defined $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'}
498 18 67 39 not $bond and &is_aromatic($ring_atom)
85 3 36 not $bond and &is_aromatic($ring_atom) and &is_aromatic($atom)
501 70 3 51 $bond and $bond ne "-"
511 120 0 4 &is_chiral($ring_atom) and $ring_atom->{'chirality_neighbours'}

or 3 conditions

line l !l&&r !l&&!r condition
329 3 1 234 $atom->{'symbol'} eq "*" or $atom->{'symbol'} eq "Db"
1 4 227 $atom->{'symbol'} eq "Ha" or not "Chemistry::Elements"->new($atom->{'symbol'})
373 4 251 1516 $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 '\\'