| blib/lib/Locale/CLDR/NumberFormatter.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 46 | 71 | 64.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 307 | 0 | 0 | 766 | $minimum_grouping_digits and length $integer >= $minimum_grouping_digits |
| 310 | 739 | 0 | 27 | 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'} |
| line | l | !l | condition |
|---|---|---|---|
| 25 | 37 | 732 | $format //= '0' |
| 59 | 8 | 9 | $for_cash //= 0 |
| 138 | 57 | 47 | $str //= '' |
| 173 | 0 | 52 | $rounding ||= 0 |
| 184 | 0 | 0 | $digits // '' |
| 209 | 52 | 0 | $prefix // '' |
| 52 | 0 | $suffix // '' | |
| 1 | 51 | $pad_location // 'none' | |
| 52 | 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'} // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 124 | 9 | 17 | 0 | $negative //= "-$positive" |
| 169 | 0 | 4 | 48 | $prefix =~ tr/%// or $suffix =~ tr/%// |
| 170 | 0 | 2 | 50 | $prefix =~ tr/\x{2030}// or $suffix =~ tr/\x{2030}// |
| 206 | 2 | 44 | 6 | $minor_group //= $major_group |
| 283 | 0 | 17 | 749 | $format->{'rounding'} or defined $for_cash |
| 307 | 766 | 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 |