Branch Coverage

blib/lib/Validator/LIVR/Rules/Numeric.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
13 2 6 if not defined $value or $value eq ''
15 3 3 unless $value =~ /^\-?\d+$/ and looks_like_number $value
24 5 78 if not defined $value or $value eq ''
26 3 62 unless $value =~ /^\d+$/ and looks_like_number $value and $value > 0
37 2 6 if not defined $value or $value eq ''
39 3 3 unless $value =~ /^\-?[\d.]+$/ and looks_like_number $value
50 2 6 if not defined $value or $value eq ''
52 3 3 unless $value =~ /^\-?[\d.]+$/ and looks_like_number $value and $value > 0
66 2 17 if not defined $value or $value eq ''
68 4 13 if $value > $max_number
79 2 30 if not defined $value or $value eq ''
81 7 23 if $value < $min_number
92 2 5 if not defined $value or $value eq ''
94 1 4 if $value < $min_number
95 1 3 if $value > $max_number