blib/lib/Locale/CLDR/NumberFormatter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 44 | 71 | 61.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
299 | 0 | 0 | 746 | $minimum_grouping_digits and length $integer >= $minimum_grouping_digits |
302 | 739 | 0 | 7 | defined $minor_group and $separator |
422 | 0 | 11 | 3 | not $plural and $format_rule =~ /(cardinal|ordinal)/u |
474 | 0 | 0 | 1 | $number >= 0 and $number < 1 |
532 | 3 | 0 | 0 | $in_fraction_rule_set and $number * $base_value == 1 |
638 | 12 | 2 | 0 | $number =~ /^-/u and exists $format_data->{'-x'} |
639 | 11 | 2 | 0 | $number =~ /\./u and exists $format_data->{'x.x'} |
line | l | !l | condition |
---|---|---|---|
25 | 17 | 732 | $format //= '0' |
52 | 0 | 1 | $for_cash //= 0 |
130 | 5 | 17 | $str //= '' |
164 | 0 | 11 | $rounding ||= 0 |
175 | 0 | 0 | $digits // '' |
200 | 11 | 0 | $prefix // '' |
11 | 0 | $suffix // '' | |
1 | 10 | $pad_location // 'none' | |
11 | 0 | $minimum_digits // 0 | |
240 | 0 | 1 | $decimal //= '.' |
385 | 3 | 5 | $type //= 'public' |
417 | 2 | 12 | $in_fraction_rule_set //= 0 |
434 | 12 | 2 | $format->{'base_value'} // '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
160 | 0 | 2 | 9 | $prefix =~ tr/%// or $suffix =~ tr/%// |
161 | 0 | 1 | 10 | $prefix =~ tr/\x{2030}// or $suffix =~ tr/\x{2030}// |
197 | 1 | 7 | 3 | $minor_group //= $major_group |
220 | 1 | 9 | 0 | $cache{$format}{'negative'} //= $cache{$format}{'positive'} |
275 | 0 | 1 | 745 | $format->{'rounding'} or defined $for_cash |
299 | 746 | 0 | 0 | $minimum_grouping_digits and length $integer >= $minimum_grouping_digits or not $minimum_grouping_digits |
532 | 0 | 3 | 0 | $in_fraction_rule_set || $number % $divisor |
640 | 6 | 0 | 6 | $number == {sign => '+', value => [0]} or $number =~ /^-/u |