Branch Coverage

blib/lib/Locale/Maketext/Utils/Phrase/Norm/Consider.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
15 8 94 if (Locale::Maketext::Utils::Phrase::struct_is_entirely_bracket_notation($struct))
29 228 166 unless ref $piece
31 16 150 $idx == 0 ? :
33 24 142 $idx == $last_idx ? :
35 98 68 if ($piece->{'type'} eq "var" or $piece->{'type'} eq "basic_var")
38 56 2 unless ($idx == $last_idx and $before =~ /\:(?:\x20|\xc2\xa0)/ and !defined($after) || $after eq '' or not $before =~ /(?:\x20|\xc2\xa0)$/ || $after =~ /^(?:\x20|\xc2\xa0)/ || ($before =~ /[a-zA-Z0-9]$/ || $after =~ /^[a-zA-Z0-9]/) or $before =~ /,(?:\x20|\xc2\xa0)$/ and $after =~ /^,/ or $before =~ /\([^\)]+(?:\x20|\xc2\xa0)$/ and $after =~ /^\)/ or $before =~ /\($/ and $after =~ /(?:\x20|\xc2\xa0)[^\)]+\)/ or $before =~ /(?:\x20|\xc2\xa0)$/ and $after =~ /\342\200\231s(?:\x20|\xc2\xa0|;.|,.|[\!\?\.\:])/)
59 32 134 if ($piece->{'list'}[0] eq "output" and $piece->{'list'}[1] eq "url")
60 16 16 unless ($piece->{'list'}[2] =~ /\A$bn_var_rexep\z/)
63 8 8 @{$piece->{'list'};} > 3 ? :
70 16 150 if ($piece->{'type'} eq "complex")
75 16 32 if ($frag eq "")
88 12 4 if ($empty_arg_count > 0)
95 16 86 if $has_hardurl
96 40 62 if $has_bare
97 4 98 if $has_empty_arg