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 758 $minimum_grouping_digits and length $integer >= $minimum_grouping_digits
310 739 0 19 defined $minor_group and $separator
439 0 11 3 not $plural and $format_rule =~ /(cardinal|ordinal)/u
491 0 0 1 $number >= 0 and $number < 1
549 3 0 0 $in_fraction_rule_set and $number * $base_value == 1
655 12 2 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 29 732 $format //= '0'
59 4 5 $for_cash //= 0
138 37 35 $str //= ''
173 0 36 $rounding ||= 0
184 0 0 $digits // ''
209 36 0 $prefix // ''
36 0 $suffix // ''
1 35 $pad_location // 'none'
36 0 $minimum_digits // 0
248 8 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 5 13 0 $negative //= "-$positive"
169 0 4 32 $prefix =~ tr/%// or $suffix =~ tr/%//
170 0 2 34 $prefix =~ tr/\x{2030}// or $suffix =~ tr/\x{2030}//
206 2 28 6 $minor_group //= $major_group
283 0 9 749 $format->{'rounding'} or defined $for_cash
307 758 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