Branch Coverage

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


line true false branch
134 4 309 if (exists $args{'return_signature'})
139 1 1 if (defined(my $msg = ${$self;}->_return_type_constraint->validate(\@_)))
204 0 2 unless $self->has_return_signature
214 0 2 unless exists $param->{'type_constraints'}
230 103 107 if $param->has_type_constraints
234 31 179 if ($param->has_constraints)
241 23 187 if ($param->sigil ne '$')
246 148 61 $param->required ? :
250 16 193 if $param->has_default_value
253 34 175 if ($param->has_traits)
255 0 34 unless $trait->[1] eq 'coerce'
273 0 6 if $@ or not defined $param
289 3 149 if ($self->_has_parsed_prototype_injections)
294 17 135 $sig->has_invocant ? :
302 99 53 $sig->has_positional_params ? :
48 104 $sig->has_named_params ? :
21 157 does_role($_, 'Parse::Method::Signatures::Param::Placeholder') ? :
319 3 154 if ($self->_has_parsed_prototype_injections)
325 20 137 $sig->has_invocant ? :
330 101 56 if ($sig->has_positional_params)
333 22 103 if $spec->{'slurpy'}
353 52 104 if ($sig->has_named_params)
354 1 51 if $self->_has_slurpy_positional
370 61 61 ref $_ ? :
375 306 7 unless exists $spec->{'coerce'}
390 6 31 exists $param->{'default'} ? :
37 254 $#{$_;} < $i ? :
395 47 89 if (%named) { }
8 81 elsif ($#{$_;} >= $i) { }
397 3 44 unless @rest % 2 == 0
402 48 20 if (exists $rest{$key})
407 5 15 if (exists $spec->{'default'})
432 43 90 if (defined(my $msg = $self->type_constraint->validate($args, \$coerced)))