Branch Coverage

blib/lib/Locale/VersionedMessages.pm
Criterion Covered Total %
branch 108 150 72.0


line true false branch
49 0 6 unless (@set)
54 0 6 unless ($set =~ /^[a-zA-Z0-9_]+$/)
61 1 5 if ($@)
86 0 1 unless (exists $$self{'set'}{$set})
98 0 1 unless (exists $$self{'set'}{$set})
110 0 1 unless (exists $$self{'set'}{$set})
123 2 4 if (@locale and exists $$self{'set'}{$locale[0]})
127 1 5 if ($set and @locale) { }
3 2 elsif (@locale) { }
1 1 elsif ($set) { }
147 3 3 if ($set)
148 0 3 unless (exists $$self{'set'}{$set})
162 3 5 if exists $$self{'mess'}{$set}{$locale}
164 0 5 unless ($set =~ /^[a-zA-Z0-9_]+$/)
171 0 5 if ($@)
180 0 24 unless (exists $$self{'set'}{$set}{'messages'}{$msgid})
195 22 4 if (@args and @args % 2) { }
198 0 22 unless (exists $$self{'set'}{$set}{'all_loc'}{$locale})
210 22 4 if ($locale) { }
0 4 elsif (exists $$self{'set'}{$set}{'search'} and @{$$self{'set'}{$set}{'search'};}) { }
3 1 elsif (exists $$self{'search'} and @{$$self{'search'};}) { }
228 0 27 unless exists $$self{'set'}{$set}{'all_loc'}{$l}
230 4 23 unless (exists $$self{'mess'}{$set}{$l})
232 0 4 if ($$self{'err'})
233 0 0 if (wantarray) { }
241 24 3 if (exists $$self{'mess'}{$set}{$l}{$msgid})
248 2 24 unless ($message)
255 3 21 if (wantarray) { }
266 0 3 unless (exists $$self{'set'}{$set})
270 1 2 unless (exists $$self{'set'}{$set}{'messages'}{$msgid})
282 0 4 if $$self{'err'}
283 3 1 if (exists $$self{'mess'}{$set}{$locale}{$msgid})
295 0 6 unless (exists $$self{'set'}{$set})
299 0 6 unless (exists $$self{'set'}{$set}{'messages'}{$msgid})
304 3 3 unless $locale
306 0 6 unless (exists $$self{'set'}{$set}{'all_loc'}{$locale})
311 5 1 if (exists $$self{'mess'}{$set}{$locale}{$msgid})
330 21 3 if (exists $$self{'set'}{$set}{'messages'}{$msgid}{'vals'})
333 4 20 unless (@vals)
334 1 3 if (%vals)
346 1 19 unless (exists $vals{$val})
353 6 13 if $$self{'err'}
354 1 12 unless ($done)
379 4 15 if ($message =~ s/\[\s*$var\s*\]/$val/gs)
393 2 1 if ($val eq $fmt)
404 4 13 if $$self{'err'}
406 7 6 if $d
432 0 11 if ($fmt)
436 0 0 if ($val eq $fmt)
447 1 10 if (@tok % 2 == 0)
460 3 12 unless (@tok)
470 3 9 if $$self{'err'}
473 4 5 if ($flag)
493 1 11 unless ($n =~ /^\d+$/)
508 1 10 if ($tmp)
532 9 2 if ($op eq '==') { }
0 2 elsif ($op eq '!=') { }
0 2 elsif ($op eq '>=') { }
1 1 elsif ($op eq '<=') { }
1 0 elsif ($op eq '>') { }
0 0 elsif ($op eq '<') { }
533 4 5 $m == $n ? :
535 0 0 $m != $n ? :
537 0 0 $m >= $n ? :
539 1 0 $m <= $n ? :
541 1 0 $m > $n ? :
543 0 0 $m < $n ? :
554 1 10 if ($test =~ s/\s*\(\s*(\d+)\s*\)\s*/$1/g)
560 1 0 if ($op eq '&&') { }
0 0 elsif ($op eq '||') { }
561 1 0 $m && $n ? :
563 0 0 $m || $n ? :
568 10 1 if $done
574 9 1 if ($test =~ /^\s*(\d+)\s*$/)
575 4 5 $1 ? :