Branch Coverage

blib/lib/Locale/Maketext/Lexicon/Getcontext.pm
Criterion Covered Total %
branch 30 54 55.5


line true false branch
36 0 8 unless defined $_[0]
39 0 8 if $_[0] =~ /^\x95\x04\x12\xde/ or $_[0] =~ /^\xde\x12\x04\x95/
50 3470 0 if (length $var{'msgstr'} and $UseFuzzy || !$var{'fuzzy'}) { }
0 0 elsif ($AllowEmpty) { }
56 8 3462 if ($var{'msgctxt'} eq '') { }
62 0 0 if ($KeepFuzzy and $var{'fuzzy'})
98 3470 0 /^ *$/ && %var ? :
0 3470 /^#, +(.*) *$/ ? :
0 3470 /^# (.*)$/ ? :
1534 3470 /^"(.*)" *$/ ? :
10402 5004 /^(msgctxt|msgid|msgstr) +"(.*)" *$/ ? :
106 0 8 if keys %var != 0
109 0 8 if length $var{'msgstr'}
111 8 0 if $var{'msgctxt'} eq ''
114 0 8 wantarray ? :
130 8 56 $1 eq 'Content-Type' ? :
64 0 /^([^\x00-\x1f\x80-\xff :=]+):\s*(.*)$/ ? :
132 8 0 if ($enc =~ /\bcharset=\s*([-\w]+)/i)
137 8 0 if $InputEncoding =~ /^utf-?8$/i
139 0 8 if $OutputEncoding =~ /^utf-?8$/i
141 8 0 if (Locale::Maketext::Lexicon::option('decode') and !$OutputEncoding || $InputEncoding ne $OutputEncoding)
146 0 8 if $] < 5.007001
168 6932 24 if ($DoEncoding and $InputEncoding)
169 6932 0 $InputEncoding eq 'utf8' ? :
177 0 6956 if ($DoEncoding and $OutputEncoding)
178 0 0 $OutputEncoding eq 'utf8' ? :
184 3478 3478 Locale::Maketext::Lexicon::option('disable_maketext_conversion') ? :