Condition Coverage

blib/lib/Mojolicious/Plugin/I18NUtils.pm
Criterion Covered Total %
condition 39 54 72.2


and 3 conditions

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

or 2 conditions

line l !l condition
16 4 23 $config->{'format'} // '%Y-%m-%d %H:%M:%S'
211 50 0 $formats->{$lang} // '%d/%m/%Y %H:%M:%S'
269 71 13 $formats->{$lang} // '%d/%m/%Y'

or 3 conditions

line l !l&&r !l&&!r condition
31 26 26 1 $lang //= ($c->browser_languages)[0]
45 35 27 1 $lang //= ($c->browser_languages)[0]
72 15 15 0 $locale //= ($c->browser_languages)[0]
74 5 25 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
75 5 25 0 $objects{'cur'}{$locale} ||= $objects{'cldr'}{$locale}->currency_formatter('currency_code', $currency)
92 9 9 0 $locale //= ($c->browser_languages)[0]
94 3 15 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
95 3 15 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
104 18 9 0 $locale //= ($c->browser_languages)[0]
106 3 24 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
107 3 24 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
116 27 27 0 $locale //= ($c->browser_languages)[0]
118 39 15 0 $objects{'cldr'}{$locale} ||= 'CLDR::Number'->new('locale', $locale)
119 39 15 0 $objects{'dec'}{$locale} ||= $objects{'cldr'}{$locale}->decimal_formatter
128 13 13 0 $locale //= ($c->browser_languages)[0]