lib/Web/ComposableRequest/Role/L10N.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 24 | 62.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
23 | 1 | 1 | 2 | $locale and &is_member($locale, $conf->locales) |
25 | 1 | 0 | 1 | $locale and $lang = &extract_lang($locale) |
1 | 1 | 0 | $locale and $lang = &extract_lang($locale) and $lang ne $locale | |
1 | 0 | 0 | $locale and $lang = &extract_lang($locale) and $lang ne $locale and &is_member($lang, $conf->locales) | |
57 | 1 | 0 | 7 | defined $args->{'params'} and ref $args->{'params'} eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
40 | 2 | 0 | $self->_env->{'HTTP_ACCEPT_LANGUAGE'} // '' |
43 | 1 | 3 | $_->[1] // '' |
53 | 8 | 0 | $args //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
127 | 0 | 7 | 0 | $args->{'locale'} //= $self->locale |