Branch Coverage

blib/lib/Mojolicious/Plugin/LocaleTextDomainOO.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
36 0 5 if ref $plugin_config->{'plugins'} eq 'ARRAY'
77 23 0 if (@languages) { }
86 6 12 if ($language) { }
191 21 47 if $url->is_abs
194 36 11 if @_ % 2 and not ref $_[0] or @_ > 1 and ref $_[-1]
197 2 45 @_ == 1 ? :
200 16 31 if (my $lang = $params{'lang'} || $self->stash('lang'))
204 6 10 if (not $path->[0]) { }
10 0 elsif (ref $langs ne 'ARRAY' or not scalar grep({$path->contains("/$_");} @$langs)) { }