Branch Coverage

blib/lib/Data/Sah/CoerceCommon.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
156 0 26 unless $Default_Rules{$compiler}{$typen}
158 2 7 ref $item eq 'ARRAY' ? :
160 0 9 if ($SUPPORT_OLD_PREFIX and $rule_name =~ /\A\w+\z/) { }
9 0 elsif ($rule_name =~ /\AFrom_[A-Za-z0-9_]+::[A-Za-z0-9_]+\z/) { }
168 4 5 if ($is_exclude) { }
171 5 0 unless grep {$_ eq $rule_name;} @rules0
177 2 76 ref $item eq 'ARRAY' ? :
178 2 76 ref $item eq 'ARRAY' ? :
180 0 78 $is_old_name ? :
185 0 77 if ($rule_v != 3 and $rule_v != 4)
205 0 3 unless ($Data::Sah::CoerceCommon::a->{'meta'}{'prio'} // 50) <=> ($Data::Sah::CoerceCommon::b->{'meta'}{'prio'} // 50)
212 13 60 if ($rule->{'meta'}{'precludes'})
214 13 37 if $j == $i
217 0 37 if (ref $p eq "Regexp" and $rules[$j]{'name'} =~ /$p/ or $rules[$j]{'name'} eq $p)
223 37 0 unless $match