Branch Coverage

lib/Web/ComposableRequest/Role/L10N.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
23 2 2 if $locale and &is_member($locale, $conf->locales)
27 1 1 if ($locale and $lang = &extract_lang($locale))
28 0 1 if $lang ne $locale and &is_member($lang, $conf->locales)
32 1 2 if &is_member($locale, $conf->locales)
36 0 1 if &is_member($lang, $conf->locales)
57 0 10 unless defined $key
61 9 1 if (defined $args->{'params'} and ref $args->{'params'} eq "ARRAY")
62 1 8 if index($text, "[_") == -1
70 0 1 if index($text, "{") == -1
76 1 0 defined $args{$1} ? :
127 1 0 unless my $domain = $self->domain
130 0 0 if $prefix
138 3 6 $_[0] && ref $_[0] eq 'ARRAY' ? :
1 9 $_[0] && ref $_[0] eq 'HASH' ? :
142 10 0 unless exists $args->{'domains'}