Condition Coverage

blib/lib/Chemistry/OpenSMILES/Stereo.pm
Criterion Covered Total %
condition 20 60 33.3


and 3 conditions

line !l l&&!r l&&r condition
174 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)
189 0 1 0 not @cistrans_bonds2 and &$order_sub($atom2) > &$order_sub($atom3)
274 0 0 1 @chirality_neighbours >= 3 and @chirality_neighbours <= 4
278 0 0 0 @chirality_neighbours >= 4 and @chirality_neighbours <= 5
282 0 0 0 @chirality_neighbours >= 5 and @chirality_neighbours <= 6
412 17 0 5 is_double_bond($moiety, @$_) and not is_ring_bond($moiety, @$_)
430 1 0 1 $atom1 and $atom4
453 0 0 1 $atom1_para and $atom4_para

or 3 conditions

line l !l&&r !l&&!r condition
62 0 1 1 is_ring_bond($graph, @$_) || is_unimportant_double_bond($graph, @$_, $color_sub)
133 0 0 0 $invariants{join "", sort(@$b)} <=> $invariants{join "", sort(@$a)} or &min(map({&$order_sub($_);} @$a)) <=> &min(map({&$order_sub($_);} @$b))
152 0 0 1 @neighbours2 < 2 or @neighbours3 < 2
174 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)
189 0 0 1 @cistrans_bonds3 or not @cistrans_bonds2 and &$order_sub($atom2) > &$order_sub($atom3)
273 1 0 0 &is_chiral_tetrahedral($atom) or &is_chiral_planar($atom)
423 0 0 2 @atom2_neighbours < 2 or @atom2_neighbours > 3
0 0 2 @atom2_neighbours < 2 or @atom2_neighbours > 3 or @atom3_neighbours < 2
0 0 2 @atom2_neighbours < 2 or @atom2_neighbours > 3 or @atom3_neighbours < 2 or @atom3_neighbours > 3