Branch Coverage

blib/lib/MooseX/Method/Signatures/Meta/Method.pm
Criterion Covered Total %
branch 62 66 93.9


line true false branch
138 4 309 if (exists $args{'return_signature'})
143 1 1 if (defined(my $msg = ${$self;}->_return_type_constraint->validate(\@_)))
208 0 2 unless $self->has_return_signature
217 0 2 unless exists $$param{'type_constraints'}
234 103 107 if $param->has_type_constraints
238 31 179 if ($param->has_constraints)
245 23 187 if ($param->sigil ne '$')
250 148 61 $param->required ? :
254 16 193 if $param->has_default_value
257 34 175 if ($param->has_traits)
259 0 34 unless $$trait[1] eq 'coerce'
277 0 6 if $@ or not defined $param
293 3 149 if ($self->_has_parsed_prototype_injections)
298 17 135 $sig->has_invocant ? :
306 99 53 $sig->has_positional_params ? :
48 104 $sig->has_named_params ? :
21 157 does_role($_, 'Parse::Method::Signatures::Param::Placeholder') ? :
323 3 154 if ($self->_has_parsed_prototype_injections)
329 20 137 $sig->has_invocant ? :
334 101 56 if ($sig->has_positional_params)
337 22 103 if $$spec{'slurpy'}
357 52 104 if ($sig->has_named_params)
358 1 51 if $self->_has_slurpy_positional
373 61 61 ref $_ ? :
379 306 7 unless exists $$spec{'coerce'}
393 6 31 exists $$param{'default'} ? :
37 254 $#{$_;} < $i ? :
399 47 89 if (%named) { }
8 81 elsif ($#{$_;} >= $i) { }
401 3 44 unless @rest % 2 == 0
406 48 20 if (exists $rest{$key})
411 5 15 if (exists $$spec{'default'})
436 43 90 if (defined(my $msg = $self->type_constraint->validate($args, \$coerced)))