Condition Coverage

lib/Chemistry/OpenSMILES/Parser.yp
Criterion Covered Total %
condition 56 63 88.8


and 3 conditions

line !l l&&!r l&&r condition
48 260 2 45 &is_aromatic($_[1]{'last'}) and &is_aromatic($_[2])
109 189 3 3 &is_aromatic($_[1]{'last'}) and &is_aromatic($_[3]{'first'})
176 8 1 1 ${$self->{'TOKEN'};} eq "" and grep {$_ eq "(" if defined $_ and not ref $_;} map({$_->[1];} @{$$self{"STACK"};})
177 2 3 2 defined $_ and not ref $_
201 1624 229 0 not $self->YYData->{'INPUT'} and $self->{'USER'}{'FILEIN'}
311 42 20 257 $_ ne ':' && exists $Chemistry::OpenSMILES::Parser::bond_symbol_to_order{$_}
338 0 22 1 $atom->{'chirality'} =~ /^\@\@?$/ and $graph->degree($atom) == 2
348 256 16 7 &is_chiral($atom) and $atom->{'first_of_chain'}
16 0 7 &is_chiral($atom) and $atom->{'first_of_chain'} and $atom->{'chirality'} =~ /^\@\@?$/
16 1 6 &is_chiral($atom) and $atom->{'first_of_chain'} and $atom->{'chirality'} =~ /^\@\@?$/ and $atom->{'chirality_neighbours'}
1 4 2 &is_chiral($atom) and $atom->{'first_of_chain'} and $atom->{'chirality'} =~ /^\@\@?$/ and $atom->{'chirality_neighbours'} and scalar @{$atom->{'chirality_neighbours'};} == 3
370 55 2 10 $bond and $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'}
2 10 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 '\\'
382 51 10 5 $bond and $bond =~ m[^[\\/]$]
61 4 1 $bond and $bond =~ m[^[\\/]$] and not defined $self->{'USER'}{'RINGBONDS'}{$ring_bond}{'bond'}
390 15 39 12 not $bond and &is_aromatic($ring_atom)
54 3 9 not $bond and &is_aromatic($ring_atom) and &is_aromatic($atom)
393 42 3 21 $bond and $bond ne "-"
403 63 0 3 &is_chiral($ring_atom) and $ring_atom->{'chirality_neighbours'}

or 3 conditions

line l !l&&r !l&&!r condition
267 4 133 862 $self->YYData->{'INPUT'} =~ s/^%([0-9]{2})// or $self->YYData->{'INPUT'} =~ s/^([0-9])//
370 0 0 9 !($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 '\\'