Branch Coverage

blib/lib/Validator/LIVR/Rules/Meta.pm
Criterion Covered Total %
branch 39 46 84.7


line true false branch
15 0 27 if not defined $nested_object or $nested_object eq ''
17 1 26 unless ref $nested_object eq 'HASH'
21 14 12 if ($result) { }
34 4 12 if (ref $_[0] eq 'ARRAY') { }
47 1 15 if not defined $values or $values eq ''
49 1 14 unless ref $values eq 'ARRAY'
54 34 9 if (my $result = $validator->validate({'field', $val})) { }
63 4 10 if (grep {$_;} @errors) { }
80 0 4 if not defined $objects or $objects eq ''
82 1 3 unless ref $objects eq 'ARRAY'
87 4 3 if (my $result = $validator->validate($obj)) { }
96 1 2 if (grep {$_;} @errors) { }
118 0 3 if not defined $objects or $objects eq ''
120 0 3 unless ref $objects eq 'ARRAY'
125 1 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 2 if (grep {$_;} @errors) { }
164 0 8 if not defined $object or $object eq ''
167 1 6 if (ref $object ne 'HASH' or not $object->{$selector_field} or not $validators{$object->{$selector_field}})
173 3 3 if (my $result = $validator->validate($object)) { }
193 0 13 if not defined $value or $value eq ''
200 8 14 if ($result) { }
208 5 0 if $last_error