Branch Coverage

blib/lib/Data/Validator/Recursive.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
13 1 25 unless @args
30 28 29 unless ref $rule eq 'HASH'
32 13 44 if (my $nested_rule = delete $$rule{'rule'})
33 1 12 if (ref $nested_rule eq 'HASH') { }
1 11 elsif (ref $nested_rule ne 'ARRAY') { }
43 2 10 if ($with)
44 2 0 unless ref $with eq 'ARRAY'
69 6 25 if (my $errors = $$self{'validator'}->clear_errors)
70 8 1 $_parent_name ? :
75 2 7 if ($type eq 'ExclusiveParameter') { }
76 2 0 $_parent_name ? :
85 2 7 defined $other_name ? :
97 0 15 unless exists $$result{$name}
102 9 6 if (ref $$result{$name} eq 'ARRAY') { }
107 1 9 $_parent_name ? :
108 3 7 if (my $errors = $validator->errors)
116 0 6 $_parent_name ? :
119 2 10 if (my $errors = $validator->errors) { }
132 9 6 unless my $errors = $self->errors
143 4 15 $$self{'errors'} ? :