Branch Coverage

blib/lib/Mojolicious/Plugin/MultiLanguage.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
219 0 0 unless $langs_available->grep(sub { lc $code eq $_->{'code'}; } )->first
236 0 0 unless $code and $code =~ /^[a-z]{2}(-[a-z]{2})?$/u
255 0 0 do { &$lang_exists($part) } ? :
0 0 do { $part eq $english->{'code'} } ? :
0 0 $part ? :
258 0 0 do { &$lang_exists($cookie) } ? :
0 0 do { $cookie eq $english->{'code'} } ? :
0 0 $cookie ? :
261 0 0 do { &$lang_exists($accept) } ? :
0 0 do { $accept eq $english->{'code'} } ? :
0 0 $accept ? :
303 0 0 if ($flags[0])
311 0 0 if $flags[2]
322 0 0 if $c->req->method eq 'OPTIONS'
326 0 0 &$lang_exists($accept) ? :
337 0 0 if $c->res->code
342 0 0 $is_api ? :
0 0 unless my $language = $is_api ? &$detect_api($c, $path) : &$detect_site($c, $path)
351 0 0 unless my $language = $c->stash('language')
365 0 0 $_->{'code'} eq $language->{'code'} ? :
377 0 0 if $url->is_abs
379 0 0 if @args % 2 and not ref $args[0] or @args > 1 and ref $args[-1]
380 0 0 @args == 1 ? :
382 0 0 unless my $language = $c->stash('language')
385 0 0 if $code eq $english->{'code'}
389 0 0 if ($path->[0]) { }
398 0 0 unless $exists