Branch Coverage

blib/lib/Chemistry/OpenSMILES/Aromaticity.pm
Criterion Covered Total %
branch 17 26 65.3


line true false branch
61 6 0 if ($cycle->[$i]{'symbol'} =~ /^([BCNOPS]|Se|As)$/)
88 1 1 unless defined $next
104 0 1 unless &all(sub { $aromatic_only->degree($_) == 2; } , @$component)
105 0 1 unless &all(sub { $moiety->degree($_) <= 3; } , @$component)
106 0 1 unless &all(sub { $_->{'symbol'} =~ /^[BCNPS]$/i; } , @$component)
107 0 1 if @$component % 2
115 3 3 if ($n % 2) { }
148 0 132 if $seen{$v}
153 12 12 if ($u == $start or $v == $start)
154 6 6 if $v == $start
160 60 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})) { }
174 0 60 unless $cycle_is_alterating
177 12 0 if $cycle_is_alterating