Condition Coverage

blib/lib/Locale/CLDR/NumberFormatter.pm
Criterion Covered Total %
condition 46 71 64.7


and 3 conditions

line !l l&&!r l&&r condition
307 0 0 772 $minimum_grouping_digits and length $integer >= $minimum_grouping_digits
310 745 0 27 defined $minor_group and $separator
439 0 11 3 not $plural and $format_rule =~ /(cardinal|ordinal)/u
491 0 0 2 $number >= 0 and $number < 1
549 3 0 0 $in_fraction_rule_set and $number * $base_value == 1
655 13 1 0 $number =~ /^-/u and exists $format_data->{'-x'}
656 11 2 0 $number =~ /\./u and exists $format_data->{'x.x'}

or 2 conditions

line l !l condition
25 37 738 $format //= '0'
59 8 9 $for_cash //= 0
138 58 50 $str //= ''
173 0 54 $rounding ||= 0
184 0 0 $digits // ''
209 54 0 $prefix // ''
54 0 $suffix // ''
1 53 $pad_location // 'none'
54 0 $minimum_digits // 0
248 16 1 $decimal //= '.'
402 3 5 $type //= 'public'
434 2 12 $in_fraction_rule_set //= 0
451 12 2 $format->{'base_value'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
124 9 18 0 $negative //= "-$positive"
169 0 4 50 $prefix =~ tr/%// or $suffix =~ tr/%//
170 0 2 52 $prefix =~ tr/\x{2030}// or $suffix =~ tr/\x{2030}//
206 2 44 8 $minor_group //= $major_group
283 0 17 755 $format->{'rounding'} or defined $for_cash
307 772 0 0 $minimum_grouping_digits and length $integer >= $minimum_grouping_digits or not $minimum_grouping_digits
549 0 3 0 $in_fraction_rule_set || $number % $divisor
657 6 0 6 $number == {sign => '+', value => [0]} or $number =~ /^-/u