Condition Coverage

blib/lib/Mojolicious/Plugin/LocaleTextDomainOO.pm
Criterion Covered Total %
condition 8 29 27.5


and 3 conditions

line !l l&&!r l&&r condition
188 0 0 0 @_ % 2 and not ref $_[0]
0 0 0 @_ > 1 and ref $_[-1]

or 2 conditions

line l !l condition
10 0 5 $ENV{'MOJO_I18N_DEBUG'} || 0
28 4 1 $plugin_config->{'file_type'} || 'po'
29 4 1 $plugin_config->{'default'} || 'en'
32 0 5 $plugin_config->{'languages'} // [$default]
41 0 0 $arg_ref->{'type'} || 'debug'
66 4 1 $conf->{'decode'} // 1
195 0 0 $url->path || []

or 3 conditions

line l !l&&r !l&&!r condition
188 0 0 0 @_ % 2 and not ref $_[0] or @_ > 1 and ref $_[-1]
194 0 0 0 $params{'lang'} || $self->stash('lang')
198 0 0 0 ref $langs ne 'ARRAY' or not scalar grep({$path->contains("/$_");} @$langs)