Branch Coverage

blib/lib/Validator/LIVR/Rules/Numeric.pm
Criterion Covered Total %
branch 57 58 98.2


line true false branch
13 3 11 if not defined $value or $value eq ''
14 4 7 if ref $value
15 2 5 unless &looks_like_number($value)
17 2 3 unless $value =~ /^\-?\d+$/ and &looks_like_number($value)
26 10 99 if not defined $value or $value eq ''
27 4 95 if ref $value
28 5 90 unless &looks_like_number($value)
30 4 72 unless $value =~ /^\d+$/ and &looks_like_number($value) and $value > 0
41 2 11 if not defined $value or $value eq ''
42 4 7 if ref $value
43 4 3 unless &looks_like_number($value)
45 0 3 unless $value =~ /^\-?[\d.]+$/ and &looks_like_number($value)
56 2 12 if not defined $value or $value eq ''
57 4 8 if ref $value
58 2 6 unless &looks_like_number($value)
61 2 4 unless $value =~ /^\-?[\d.]+$/ and &looks_like_number($value) and $value > 0
75 2 22 if not defined $value or $value eq ''
76 4 18 if ref $value
77 1 17 unless &looks_like_number($value)
79 4 13 if $value > $max_number
90 2 40 if not defined $value or $value eq ''
91 4 36 if ref $value
92 1 35 unless &looks_like_number($value)
94 7 28 if $value < $min_number
105 2 10 if not defined $value or $value eq ''
106 4 6 if ref $value
107 1 5 unless &looks_like_number($value)
109 1 4 if $value < $min_number
110 1 3 if $value > $max_number