Condition Coverage

blib/lib/Mojolicious/Plugin/MultiLanguage.pm
Criterion Covered Total %
condition 0 30 0.0


and 2 conditions

line l !l condition
311 0 0 $c->redirect_to($flags[3]) and return undef

and 3 conditions

line !l l&&!r l&&r condition
236 0 0 0 $code and $code =~ /^[a-z]{2}(-[a-z]{2})?$/u
379 0 0 0 @args % 2 and not ref $args[0]
0 0 0 @args > 1 and ref $args[-1]

or 2 conditions

line l !l condition
13 0 0 $conf->{'cookie'} //= {'path', '/'}
14 0 0 $conf->{'languages'} //= ['es', 'fr', 'de', 'zh-tw']
15 0 0 $conf->{'api_prefix'} //= ['/api']
252 0 0 $path->parts->[0] // ''
387 0 0 $url->path // []

or 3 conditions

line l !l&&r !l&&!r condition
362 0 0 0 $c->stash('language') // $english
379 0 0 0 @args % 2 and not ref $args[0] or @args > 1 and ref $args[-1]
383 0 0 0 $params{'lang'} // $language->{'code'}