Branch Coverage

blib/lib/Data/Verifier.pm
Criterion Covered Total %
branch 69 82 84.1


line true false branch
65 4 151 if ($blessed_params) { }
66 3 1 $params->can($key) ? :
76 17 138 if (ref $val eq 'ARRAY') { }
84 103 52 if ($fprof->{'type'})
87 0 103 unless defined $cons
92 18 85 if ($cons->is_a_type_of('ArrayRef') and $cons->can('type_parameter'))
108 17 1 if (ref $val eq 'ARRAY') { }
120 44 6 if ($res->success) { }
145 4 99 unless $field->valid
148 137 14 unless ($skip_string_checks)
150 137 0 if ($self->filters)
155 11 125 if ($fprof->{'filters'})
160 0 136 if (defined $val and $val eq '')
164 0 136 if (ref $val eq 'ARRAY') { }
171 8 128 if ($fprof->{'required'} and not defined $val) { }
179 10 126 unless defined $val
182 2 124 if ($fprof->{'min_length'} and length $val < $fprof->{'min_length'})
189 2 122 if ($fprof->{'max_length'} and length $val > $fprof->{'max_length'})
197 93 43 if ($fprof->{'type'})
200 0 93 unless defined $cons
203 2 91 if ($fprof->{'coerce'}) { }
2 89 elsif (my $coercion = $fprof->{'coercion'}) { }
211 8 85 unless ($cons->check($val))
222 8 120 if ($dependent and not $members)
234 1 7 unless ($dep_results->success)
243 12 0 if (not $members and defined $fprof->{'post_check'} and $fprof->{'post_check'})
248 10 0 if ($members and defined $fprof->{'member_post_check'} and $fprof->{'member_post_check'})
258 20 91 if (scalar @post_checks)
267 10 12 $members ? :
268 22 0 if (defined $pc and $pc)
270 7 14 unless ($results->$pc)
273 7 0 unless $field->has_reason
285 3 108 if ($self->has_derived)
289 0 3 unless defined $der
297 1 2 if (defined $req and $req and not defined $rv) { }
303 0 2 unless defined $f
326 4 144 if (ref $filters ne 'ARRAY')
331 148 0 unless (ref $values eq 'ARRAY')
339 7 19 if (ref $f) { }
342 1 18 unless 'Data::Verifier::Filters'->can($f)
349 147 0 $created_ref ? :