Condition Coverage

lib/Mojolicious/Plugin/I18N.pm
Criterion Covered Total %
condition 27 39 69.2


and 3 conditions

line !l l&&!r l&&r condition
50 42 0 0 $$conf{'support_hosts'} and my $host = $self->req->headers->host
66 7 12 23 $part and $langs
19 11 12 $part and $langs and grep {$part eq $_;} @$langs
117 11 1 39 @_ % 2 and not ref $_[0]
10 1 1 @_ > 1 and ref $_[-1]
192 0 0 98 $namespace and $lang

or 2 conditions

line l !l condition
17 3 2 $$conf{'default'} || 'en'
124 16 0 $url->path || []
151 0 5 $ENV{'MOJO_I18N_DEBUG'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
16 5 0 0 $$conf{'namespace'} || ref($app) . '::I18N'
117 39 0 12 @_ % 2 and not ref $_[0] or @_ > 1 and ref $_[-1]
123 6 10 35 $params{'lang'} || $self->stash('lang')
127 0 10 0 ref $langs ne 'ARRAY' or not scalar grep({$path->contains("/$_");} @$langs)
220 14 0 1 $@ or not eval "%${module}::Lexicon"