Branch Coverage

lib/Params/Profile.pm
Criterion Covered Total %
branch 38 52 73.0


line true false branch
127 0 2 unless UNIVERSAL::isa($_[0], 'HASH') or UNIVERSAL::isa($_[0], 'ARRAY') or not ref $_[0] or $_[0] eq {}
142 0 9 unless Params::Check::check($tpl, \%args)
150 4 5 UNIVERSAL::isa($new_profiles, 'ARRAY') ? :
155 1 2 unless (ref $profiles[$i] or 'Params::Profile'->Profiles->{$class->_full_method_name($profiles[$i], $caller)})
166 10 2 if (ref $profiles[$i])
167 6 4 if (UNIVERSAL::isa($profiles[$i]{'required'}, 'ARRAY') or UNIVERSAL::isa($profiles[$i]{'optional'}, 'ARRAY')) { }
172 1 5 if $type and $type ne 'dv'
181 0 4 if $type and $type ne 'pc'
192 2 9 unless ref $profiles[$i]
212 10 17 $method =~ /::/ ? :
243 0 4 unless Params::Check::check($tpl, \%args)
259 0 1 @_ ? :
265 0 2 unless $profile
270 0 1 if $fail
279 0 15 unless (exists 'Params::Profile'->Profiles->{$method})
285 1 14 if (not 'Params::Profile'->Profiles->{$method}{'type'}) { }
296 2 14 !ref($_) ? :
299 11 3 if ('Params::Profile'->Profiles->{$method}{'type'} eq 'dv') { }
360 0 5 unless Params::Check::check($tpl, \%args)
365 0 5 unless my $profile = $class->_get_profile($method)
369 4 1 if (UNIVERSAL::isa($profile->{'required'}, 'ARRAY') or UNIVERSAL::isa($profile->{'optional'}, 'ARRAY')) { }
376 1 0 Params::Check::check($profile, $params) ? :
413 0 3 unless Params::Check::check($tpl, \%args)
418 0 3 unless my $profile = $class->_get_profile($method)
422 2 1 if (UNIVERSAL::isa($profile->{'required'}, 'ARRAY') or UNIVERSAL::isa($profile->{'optional'}, 'ARRAY')) { }
442 8 0 caller 2 ? :