Condition Coverage

blib/lib/Mojolicious/Plugin/I18NUtils.pm
Criterion Covered Total %
condition 38 56 67.8


and 3 conditions

line !l l&&!r l&&r condition
80 14 16 0 $opts and $opts->{'cash'}

or 2 conditions

line l !l condition
16 27 0 $config //= {}
17 4 23 $config->{'format'} // '%Y-%m-%d %H:%M:%S'
212 50 0 $formats->{$lang} // '%d/%m/%Y %H:%M:%S'
270 70 12 $formats->{$lang} // '%d/%m/%Y'

or 3 conditions

line l !l&&r !l&&!r condition
32 25 25 0 $lang //= ($c->browser_languages)[0]
46 34 26 0 $lang //= ($c->browser_languages)[0]
73 15 15 0 $locale //= ($c->browser_languages)[0]
75 5 25 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
76 5 25 0 $objects{'cur'}{$locale} ||= $objects{'cldr'}{$locale}->currency_formatter('currency_code', $currency)
93 9 9 0 $locale //= ($c->browser_languages)[0]
95 3 15 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
96 3 15 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
105 18 9 0 $locale //= ($c->browser_languages)[0]
107 3 24 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
108 3 24 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
117 27 27 0 $locale //= ($c->browser_languages)[0]
119 39 15 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
120 39 15 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
129 13 13 0 $locale //= ($c->browser_languages)[0]