Branch Coverage

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


line true false branch
15 8 90 if (Locale::Maketext::Utils::Phrase::struct_is_entirely_bracket_notation($struct))
28 208 150 unless ref $piece
30 16 134 $idx == 0 ? :
32 24 126 $idx == $last_idx ? :
34 98 52 if ($$piece{'type'} eq 'var' or $$piece{'type'} eq 'basic_var')
37 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|;.|,.|[\!\?\.\:])/)
58 32 118 if ($$piece{'list'}[0] eq 'output' and $$piece{'list'}[1] eq 'url')
59 16 16 unless ($$piece{'list'}[2] =~ /\A$bn_var_rexep\z/)
62 8 8 @{$$piece{'list'};} > 3 ? :
70 16 82 if $has_hardurl
71 40 58 if $has_bare