Condition Coverage

blib/lib/Locale/CLDR/NumberFormatter.pm
Criterion Covered Total %
condition 47 71 66.2


and 3 conditions

line !l l&&!r l&&r condition
308 0 0 772 $minimum_grouping_digits and length $integer >= $minimum_grouping_digits
311 745 0 27 defined $minor_group and $separator
443 0 11 3 not $plural and $format_rule =~ /(cardinal|ordinal)/u
495 0 0 2 $number >= 0 and $number < 1
553 3 0 0 $in_fraction_rule_set and $number * $base_value == 1
659 13 0 1 $number =~ /^-/u and exists $format_data->{'-x'}
660 11 1 1 $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
249 16 1 $decimal //= "."
406 3 5 $type //= "public"
438 2 12 $in_fraction_rule_set //= 0
455 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
284 0 17 755 $format->{'rounding'} or defined $for_cash
308 772 0 0 $minimum_grouping_digits and length $integer >= $minimum_grouping_digits or not $minimum_grouping_digits
553 0 3 0 $in_fraction_rule_set || $number % $divisor
661 6 0 6 $number == bless( {"_e" => bless( [0], 'Math::BigInt::Calc' ),"_es" => "+","_m" => bless( [0], 'Math::BigInt::Calc' ),"sign" => "+"}, 'Math::BigFloat' ) or $number =~ /^-/u