Branch Coverage

blib/lib/Catmandu/Validator.pm
Criterion Covered Total %
branch 21 22 95.4


line true false branch
28 0 10 unless (is_hash_ref($data))
38 6 4 if ($errors) { }
57 5 7 if (is_hash_ref($data))
62 5 2 if (is_array_ref($data))
67 1 1 if (is_invocant($data))
77 3 21 ($self->error_field || 0) eq '1' ? :
86 14 10 if ($errors) { }
93 4 20 if ($errors and $error_field)
97 8 16 if ($self->after_callback)
101 2 14 if ($errors and $self->error_callback)
106 3 11 if $errors and not $error_field