Branch Coverage

blib/lib/Validator/LIVR/Rules/String.pm
Criterion Covered Total %
branch 54 54 100.0


line true false branch
10 12 10 if (ref $_[0] eq 'ARRAY') { }
20 2 20 if not defined $value or $value eq ''
21 4 16 if ref $value and not ref($value) =~ /Boolean/
24 9 20 if ($value eq $allowed_value)
40 3 16 if not defined $value or $value eq ''
41 4 12 if ref $value
43 5 7 if length $value > $max_length
54 3 18 if not defined $value or $value eq ''
55 4 14 if ref $value
57 7 7 if length $value < $min_length
68 3 11 if not defined $value or $value eq ''
69 4 7 if ref $value
71 1 6 if length $value < $length
72 2 4 if length $value > $length
83 3 11 if not defined $value or $value eq ''
84 4 7 if ref $value
86 1 6 if length $value < $min_length
87 2 4 if length $value > $max_length
97 2 13 $is_ignore_case ? :
101 3 12 if not defined $value or $value eq ''
102 4 8 if ref $value
104 4 4 unless $value =~ /$re/
114 1 8 if not defined $value or $value eq ''
115 4 4 if ref $value
126 1 20 if not defined $value or $value eq ''
127 4 16 if ref $value
129 9 7 if $value eq $allowed_value