Condition Coverage

blib/lib/Chemistry/OpenSMILES.pm
Criterion Covered Total %
condition 32 39 82.0


and 3 conditions

line !l l&&!r l&&r condition
117 239 2 20 $what->{'chirality'} && $what->{'chirality'} =~ /^\@\@?$/
126 35 10 16 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') =~ m[^[\\/]$]
133 21 5 38 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') eq '='
167 345 4 1 $_->[0] == $b and $_->[1] == $a
343 7 5 $_->[0] == $a and $_->[1] == $b
197 6 0 25 exists $distance{$b} && $distance{$b} <= $max_length
210 0 0 0 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') eq '#'
242 0 0 7 $moiety->degree($atom) == 4 and $color_sub
253 2 4 1 scalar keys %colors != 4 and not is_ring_atom($moiety, $atom, scalar $moiety->edges)
265 8 111 22 not &is_chiral($atom) and $moiety->degree($atom) == 4
300 1 2 1 $bond_types{$_} and @{$bond_types{$_};} > 1
350 20 11 7 $bond_type =~ m[^[\\/]$] and $atom->{'number'} > $neighbour->{'number'}

or 3 conditions

line l !l&&r !l&&!r condition
203 69 0 48 !$moiety->has_edge_attribute($a, $b, 'bond') || $moiety->get_edge_attribute($a, $b, 'bond') eq '-'