Condition Coverage

blib/lib/Format/Util/Numbers.pm
Criterion Covered Total %
condition 40 48 83.3


and 3 conditions

line !l l&&!r l&&r condition
114 3 1 1 $last_num and $last_num > "0.5"
188 1 2 35 defined $val and $val =~ /$floating_point_regex/
2 1 34 defined $val and $val =~ /$floating_point_regex/ and defined $$precisions{$type // "unknown-type"}
1 1 33 defined $val and $val =~ /$floating_point_regex/ and defined $$precisions{$type // "unknown-type"} and defined $precisions->{$type}{$currency // "unknown-type"}
230 1 2 23 defined $val and $val =~ /$floating_point_regex/
2 1 22 defined $val and $val =~ /$floating_point_regex/ and defined $$precisions{$type // "unknown-type"}
1 1 21 defined $val and $val =~ /$floating_point_regex/ and defined $$precisions{$type // "unknown-type"} and defined $precisions->{$type}{$currency // "unknown-type"}
269 1 0 12 defined $val && $val =~ /$floating_point_regex/
0 3 9 defined $precision && $precision =~ /^(?:1(?:[eE][-]?[0-9]+)?|0(?:\.0*1)?)$/
308 0 1 9 defined $currency and defined $precisions->{'price'}{$currency // "unknown-type"}

or 2 conditions

line l !l condition
136 110 1 $text //= 0
188 35 0 $type // "unknown-type"
34 0 $currency // "unknown-type"
230 23 0 $type // "unknown-type"
22 0 $currency // "unknown-type"
308 10 0 $currency // "unknown-type"

or 3 conditions

line l !l&&r !l&&!r condition
269 3 1 8 not defined $precision && $precision =~ /^(?:1(?:[eE][-]?[0-9]+)?|0(?:\.0*1)?)$/ or $precision == 0
1 1 11 not defined $val && $val =~ /$floating_point_regex/ or (not defined $precision && $precision =~ /^(?:1(?:[eE][-]?[0-9]+)?|0(?:\.0*1)?)$/ or $precision == 0)