| lib/Web/ComposableRequest/Role/L10N.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 23 | 35 | 65.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 23 | 1 | 1 | 2 | $locale and &is_member($locale, $conf->locales) |
| 27 | 1 | 0 | 1 | $locale and $lang = &extract_lang($locale) |
| 28 | 1 | 0 | 0 | $lang ne $locale and &is_member($lang, $conf->locales) |
| 61 | 1 | 0 | 9 | defined $args->{'params'} and ref $args->{'params'} eq "ARRAY" |
| 138 | 3 | 6 | 1 | $_[0] && ref $_[0] eq 'HASH' |
| 3 | 3 | 3 | $_[0] && ref $_[0] eq 'ARRAY' |
| line | l | !l | condition |
|---|---|---|---|
| 44 | 2 | 0 | $self->_env->{'HTTP_ACCEPT_LANGUAGE'} // "" |
| 47 | 1 | 3 | $_->[1] // "" |
| 57 | 10 | 0 | $args //= {} |
| 126 | 1 | 0 | $self->_config->l10n_attributes->{'domains'} // [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 108 | 0 | 9 | 0 | $args->{'locale'} //= $self->locale |
| 142 | 9 | 1 | 0 | $_domains //= $self->_get_domains |
| 144 | 0 | 10 | 0 | $args->{'no_quote_bind_values'} //= !$self->_config->quote_bind_values |