Branch Coverage

blib/lib/Validator/LIVR/Rules/Helpers.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
15 0 19 if not defined $nested_object or $nested_object eq ''
17 1 18 unless ref $nested_object eq 'HASH'
21 11 7 if ($result) { }
34 4 9 if (ref $_[0] eq 'ARRAY') { }
47 1 12 if not defined $values or $values eq ''
49 1 11 unless ref $values eq 'ARRAY'
54 32 7 if (my $result = $validator->validate({'field', $val})) { }
63 3 8 if (grep {$_;} @errors) { }
80 0 3 if not defined $objects or $objects eq ''
82 1 2 unless ref $objects eq 'ARRAY'
87 4 3 if (my $result = $validator->validate($obj)) { }
96 1 1 if (grep {$_;} @errors) { }
118 0 2 if not defined $objects or $objects eq ''
120 0 2 unless ref $objects eq 'ARRAY'
125 0 6 if (ref $obj ne 'HASH' or not $$obj{$selector_field} or not $validators{$$obj{$selector_field}})
132 3 3 if (my $result = $validator->validate($obj)) { }
140 1 1 if (grep {$_;} @errors) { }