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'})
259 1 4 if ($neg)
263 1 4 if (defined $dec)
330 0 100 if ($min > $max)
337 100 0 unless (wantarray)
364 2 2 unless even_odd_check($number)
367 1 1 if ($number % 2 == 1)
378 2 2 unless even_odd_check($number)
381 1 1 if ($number % 2 == 1)
393 4 4 unless (isnumeric($number))
394 2 2 if (defined $number) { }
404 0 4 if ($number =~ /\,/)