Condition Coverage

blib/lib/Chemistry/OpenSMILES/Stereo.pm
Criterion Covered Total %
condition 18 51 35.2


and 3 conditions

line !l l&&!r l&&r condition
39 13 0 2 is_double_bond($graph, @$_) and not is_ring_bond($graph, @$_)
150 1 0 0 @neighbours2 == 2 and not @cistrans_bonds2
1 0 0 @neighbours2 == 2 and not @cistrans_bonds2 and not &any(sub { is_single_bond($graph, $atom2, $_); } , @neighbours2)
1 0 0 @neighbours3 == 2 and not @cistrans_bonds3
1 0 0 @neighbours3 == 2 and not @cistrans_bonds3 and not &any(sub { is_single_bond($graph, $atom3, $_); } , @neighbours3)
165 0 1 0 not @cistrans_bonds2 and &$order_sub($atom2) > &$order_sub($atom3)
241 0 0 1 @{$atom->{'chirality_neighbours'};} >= 3 and @{$atom->{'chirality_neighbours'};} <= 4
287 13 0 2 is_double_bond($moiety, @$_) and not is_ring_bond($moiety, @$_)
305 0 0 1 $atom1 and $atom4
326 0 0 1 $atom1_para and $atom4_para

or 3 conditions

line l !l&&r !l&&!r condition
109 0 0 0 $invariants{join "", sort(@$b)} <=> $invariants{join "", sort(@$a)} or &min(map({&$order_sub($_);} @$a)) <=> &min(map({&$order_sub($_);} @$b))
128 0 0 1 @neighbours2 < 2 or @neighbours3 < 2
150 0 0 1 @neighbours2 == 2 and not @cistrans_bonds2 and not &any(sub { is_single_bond($graph, $atom2, $_); } , @neighbours2) or @neighbours3 == 2 and not @cistrans_bonds3 and not &any(sub { is_single_bond($graph, $atom3, $_); } , @neighbours3)
165 0 0 1 @cistrans_bonds3 or not @cistrans_bonds2 and &$order_sub($atom2) > &$order_sub($atom3)
298 0 0 1 @atom2_neighbours < 2 or @atom2_neighbours > 3
0 0 1 @atom2_neighbours < 2 or @atom2_neighbours > 3 or @atom3_neighbours < 2
0 0 1 @atom2_neighbours < 2 or @atom2_neighbours > 3 or @atom3_neighbours < 2 or @atom3_neighbours > 3