Branch Coverage

blib/lib/Chemistry/OpenSMILES/Aromaticity.pm
Criterion Covered Total %
branch 16 26 61.5


line true false branch
62 18 0 if ($cycle->[$i]{'symbol'} =~ /^([BCNOPS]|Se|As)$/)
84 2 0 unless $order_sub
95 0 3 unless &all(sub { $aromatic_only->degree($_) == 2; } , @$component)
96 0 3 unless &all(sub { $moiety->degree($_) <= 3; } , @$component)
97 0 3 unless &all(sub { $_->{'symbol'} =~ /^[BCNPS]$/i; } , @$component)
98 0 3 if @$component % 2
106 9 9 if ($i % 2) { }
138 0 594 if $seen{$v}
143 36 76 if ($u == $start or $v == $start)
144 18 18 if $v == $start
150 180 0 if (not defined $prev_bond_is_single and is_single_bond($moiety, $current, $prev{$current}) || is_double_bond($moiety, $current, $prev{$current}) or $prev_bond_is_single and is_double_bond($moiety, $current, $prev{$current}) or not $prev_bond_is_single and is_single_bond($moiety, $current, $prev{$current})) { }
164 0 180 unless $cycle_is_alterating
167 36 0 if $cycle_is_alterating