Branch Coverage

blib/lib/Dancer/Plugin/I18N.pm
Criterion Covered Total %
branch 2 66 3.0


line true false branch
39 2 0 if (not defined $n) { }
0 0 elsif (not ref $n and length $n) { }
0 0 elsif (ref $n eq 'ARRAY') { }
49 0 2 if ($$settings{'setlocale'})
51 0 0 if ($@)
161 0 0 if defined $handle and ref $handle eq 'HASH'
163 0 0 unless $settings
179 0 0 if ($@) { }
257 0 0 if (opendir my $langdir, $lang_path)
259 0 0 unless $entry =~ /\A (\w+)\.(?:pm|po|mo) \z/msx
261 0 0 if $langtag eq 'i_default'
288 0 0 $_[0] ? :
299 0 0 if ($s eq 'LC_' . $k)
302 0 0 if defined $c
311 0 0 unless $handle and exists $$handle{'languages'}
318 0 0 unless $settings
321 0 0 if (my $s = $$settings{'setlocale'})
322 0 0 ref $s eq 'ARRAY' ? :
354 0 0 unless $handle
356 0 0 if ($lang) { }
357 0 0 if (ref $lang eq 'ARRAY') { }
361 0 0 if ($$handle{'languages'}[$i] eq $lang)
385 0 0 if defined $lang_test
389 0 0 $handle ? :
421 0 0 $handle ? :
424 0 0 if (defined $lang_test)
425 0 0 if $ret eq $lang_test or $ret =~ /^$lang_test/
450 0 0 if (defined $handle)
451 0 0 if (defined $_[0])
452 0 0 if $$handle{'installed_languages'} and $$handle{'installed_languages'}{$_[0]}
482 0 0 if scalar @_ == 0
483 0 0 unless defined $handle
489 0 0 if ref $_[1] eq 'ARRAY'