Condition Coverage

blib/lib/Plack/I18N.pm
Criterion Covered Total %
condition 7 9 77.7


or 2 conditions

line l !l condition
22 21 0 $params{'i18n_class'} || 'Plack::I18N::Auto'
24 1 20 $params{'default_language'} || 'en'
33 1 20 $params{'languages'} || [sort($$self{'lexicon'}->detect_languages)]

or 3 conditions

line l !l&&r !l&&!r condition
57 1 16 0 $$self{'handles'}{$language} ||= do { my $handle = $i18n_class->get_handle($language); $handle->fail_with(sub { $_[1]; } ); 'Plack::I18N::Handle'->new('handle', $handle, 'language', $language) }