Branch Coverage

blib/lib/Locale/Maketext/Utils/Phrase.pm
Criterion Covered Total %
branch 46 52 88.4


line true false branch
33 0 120 if $phrase =~ /~~/
35 20 100 unless $phrase =~ /(?:$opening_bn|$closing_bn)/
65 172 235 if (defined $bn_inside) { }
66 6 166 if ($bn_inside =~ /(?:$closing_bn|$opening_bn)/)
84 0 235 if ($match =~ /(?:$opening_bn|$closing_bn)/)
92 0 94 unless @struct
95 10 84 if (struct2phrase(\@struct) ne $phrase)
105 167 232 ref $_ ? :
112 6 2 if $_[0] =~ /$opening_bn/
118 3 1 if $len == 1 and ref $_[0][0] or $len > 1
123 2 6 if $_[0] =~ /\A$opening_bn(?:\~[\[\]]|[^\[\]])+$closing_bn\z/x
128 9 93 if @{$_[0];} == 1 and ref $_[0][0]
135 3 386 $limit ? :
200 180 193 if $i < $skip_to
201 13 180 if $$list[$i] =~ /\A$bn_var_arg\z/
214 107 275 if $len == 1 and $$list[0] =~ /\A$bn_var_arg\z/
217 14 261 unless defined $$list[0] and $$list[0] =~ /\A(?:$ns_regexp|\*|\#)\z/
218 1 260 if $$list[0] eq 'output' and not defined $$list[1] && $$list[1] =~ /\A$ns_regexp\z/
221 47 206 if exists $meth{$$list[0]} and ref $meth{$$list[0]} ne 'CODE' || $meth{$$list[0]}($list)
223 206 0 if (exists $basic{$$list[0]} and ref $basic{$$list[0]} ne 'CODE' || $basic{$$list[0]}($list))
227 206 0 if ($$list[0] eq 'output')
228 131 75 if ($$list[1] =~ /\A(?:underline|strong|em|class|attr|inline|block|sup|sub)\z/)
231 36 9 if ($$list[2] =~ /\A$bn_var_arg\z/ and !exists($attr{'title'}) || $attr{'title'} =~ /\A$bn_var_arg\z/ and !exists($attr{'alt'}) || $attr{'alt'} =~ /\A$bn_var_arg\z/)
238 42 128 if ($$list[1] =~ /\A(?:img|abbr|acronym)\z/)
244 12 3 if ($$list[2] =~ /\A$bn_var_arg\z/ and $$list[3] =~ /\A$bn_var_arg\z/ and !exists($attr{'title'}) || $attr{'title'} =~ /\A$bn_var_arg\z/ and !exists($attr{'alt'}) || $attr{'alt'} =~ /\A$bn_var_arg\z/)
256 7 0 if exists $complex{$$list[0]} and ref $complex{$$list[0]} ne 'CODE' || $complex{$$list[0]}($list)