Branch Coverage

blib/lib/Number/Misc.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
119 3 22 unless defined $val
122 3 19 if ($opts{'convertible'} or $opts{'convertable'})
125 1 21 unless (defined $val)
133 14 7 if ($val =~ /^\d+$/)
179 0 7 unless (defined $rv and $rv =~ /\S/)
180 0 0 if ($opts{'always_number'})
194 3 4 unless (isnumeric($rv))
195 1 2 if ($opts{'always_number'})
238 1 3 if ($neg)
240 1 3 if (defined $dec)
305 0 100 if ($min > $max)
312 100 0 unless (wantarray)
339 2 2 unless even_odd_check($number)
342 1 1 if ($number % 2 == 1)
353 2 2 unless even_odd_check($number)
356 1 1 if ($number % 2 == 1)
368 4 4 unless (isnumeric($number))
369 2 2 if (defined $number) { }
379 0 4 if ($number =~ /\,/)