Condition Coverage

blib/lib/Ado/Plugin/I18n.pm
Criterion Covered Total %
condition 31 38 81.5


and 3 conditions

line !l l&&!r l&&r condition
144 0 100 0 $config->{'language_from_host'} and my($l) = $c->req->headers->host =~ /^(\w{2})\./
154 0 92 8 $config->{'language_from_param'} and my $l = $c->param($l_param) // ''
161 8 92 0 not $stash->{$l_param} and $config->{'language_from_cookie'}
0 87 5 not $stash->{$l_param} and $config->{'language_from_cookie'} and $language = $c->cookie($l_param)
8 87 0 not $stash->{$l_param} and $config->{'language_from_headers'}

or 2 conditions

line l !l condition
71 1 24 $config->{'default_language'} ||= 'en'
74 1 24 $config->{'languages'} ||= ['en', 'de', 'bg']
78 1 24 $config->{'language_from_route'} //= 1
79 1 24 $config->{'language_from_host'} //= 1
80 1 24 $config->{'language_from_param'} //= 1
81 1 24 $config->{'language_from_cookie'} //= 1
82 1 24 $config->{'language_from_headers'} //= 1
83 1 24 $config->{'language_param'} //= 'language'
86 1 24 $config->{'namespace'} ||= 'Ado::I18n'
154 8 92 $c->param($l_param) // ''

or 3 conditions

line l !l&&r !l&&!r condition
138 21 6 0 $stash->{'i18n'} ||= $config->{'namespace'}->get_handle($stash->{$l_param}, $c, $config)