Branch Coverage

blib/lib/Method/ParamValidator.pm
Criterion Covered Total %
branch 24 46 52.1


line true false branch
243 1 2 if ($self->has_config)
255 2 3 if (exists $_->{'source'})
288 0 21 if $caller[3] eq '(eval)'
290 0 21 unless defined $key
298 2 19 unless exists $self->{'methods'}{$key}
300 2 17 unless defined $values
305 2 15 unless ref $values eq 'HASH'
314 27 7 if ($method->is_required_field($field_name))
319 5 22 unless exists $values->{$field_name}
324 3 19 unless defined $values->{$field_name}
332 5 21 if defined $values->{$field_name} and not $field->valid($values->{$field_name})
347 0 0 if $caller[3] eq '(eval)'
349 0 0 unless defined $key
357 0 0 unless exists $self->{'methods'}{$key}
359 0 0 unless defined $values
364 0 0 unless ref $values eq 'HASH'
375 0 0 if defined $values->{$field_name}
407 0 10 if exists $self->{'fields'}{$param->{'name'}}
422 0 0 if $caller[3] eq '(eval)'
424 0 0 unless defined $name
452 0 4 if exists $self->{'methods'}{$param->{'name'}}
473 0 15 if $caller[3] eq '(eval)'
475 0 15 unless defined $name