Condition Coverage

blib/lib/Chemistry/OpenSMILES.pm
Criterion Covered Total %
condition 68 93 73.1


and 3 conditions

line !l l&&!r l&&r condition
164 0 0 0 scalar keys %colors == 2 and &all(sub { $_ == 2; } , values %colors)
201 503 94 374 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') eq ':'
219 667 24 7 $what->{'chirality'} && $what->{'chirality'} =~ /^\@AL[12]$/
229 58 29 6 $what->{'chirality'} && $what->{'chirality'} =~ /^\@SP[123]$/
240 683 23 155 $what->{'chirality'} && $what->{'chirality'} =~ /^\@\@?$/
250 80 24 8 $what->{'chirality'} && $what->{'chirality'} =~ /^\@TB([1-9]|1[0-9]|20)$/
260 22 5 5 $what->{'chirality'} && $what->{'chirality'} =~ /^\@OH([1-9]|[12][0-9]|30)$/
269 1253 255 108 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') =~ m[^[\\/]$]
276 889 253 208 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') eq '='
310 313 8 3 $_->[0] == $b and $_->[1] == $a
313 11 5 $_->[0] == $a and $_->[1] == $b
340 11 0 31 exists $distance{$b} && $distance{$b} <= $max_length
353 0 0 0 $moiety->has_edge_attribute($a, $b, 'bond') && $moiety->get_edge_attribute($a, $b, 'bond') eq '#'
373 0 0 0 $Chemistry::OpenSMILES::TB[$_]{'axis'}[0] == $setting->{'axis'}[0] and $Chemistry::OpenSMILES::TB[$_]{'axis'}[1] == $setting->{'axis'}[1]
383 0 0 0 $Chemistry::OpenSMILES::OH[$_]{'shape'} eq $setting->{'shape'} and $Chemistry::OpenSMILES::OH[$_]{'axis'}[0] == $setting->{'axis'}[0]
0 0 0 $Chemistry::OpenSMILES::OH[$_]{'shape'} eq $setting->{'shape'} and $Chemistry::OpenSMILES::OH[$_]{'axis'}[0] == $setting->{'axis'}[0] and $Chemistry::OpenSMILES::OH[$_]{'axis'}[1] == $setting->{'axis'}[1]
488 511 1 89 &is_aromatic($atom) and $moiety->degree($atom)
512 88 1 &is_aromatic($atom) and $moiety->degree($atom) and 2 > grep({is_aromatic_bond($moiety, $atom, $_);} $moiety->neighbours($atom))
496 0 525 62 not &is_chiral($atom) and $moiety->degree($atom) == 4
607 31 8 12 $cis_trans_A and $cis_trans_B
24 12 3 not $allenes->has_edge(@$bond) and $cis_trans_A + $cis_trans_B == 1
612 21 26 1 $bond_types{$_} and @{$bond_types{$_};} > 1
656 429 74 91 &is_aromatic($A) and &is_aromatic($B)
503 89 2 &is_aromatic($A) and &is_aromatic($B) and not is_aromatic_bond($moiety, $A, $B)
163 0 2 &is_aromatic($A) and &is_aromatic($B) and not is_aromatic_bond($moiety, $A, $B) and is_ring_bond($moiety, $A, $B)
747 0 27 12 @d1 == 2 and @d2
27 0 12 @d1 == 2 and @d2 and @d1 + @d2 == @$system

or 3 conditions

line l !l&&r !l&&!r condition
133 0 0 65 &is_chiral_allenal($atom) or &is_chiral_planar($atom)
0 7 58 &is_chiral_allenal($atom) or &is_chiral_planar($atom) or &is_chiral_tetrahedral($atom)
7 0 58 &is_chiral_allenal($atom) or &is_chiral_planar($atom) or &is_chiral_tetrahedral($atom) or &is_chiral_trigonal_bipyramidal($atom)
346 202 0 103 !$moiety->has_edge_attribute($a, $b, 'bond') || $moiety->get_edge_attribute($a, $b, 'bond') eq '-'