Branch Coverage

blib/lib/Method/Signatures/Signature.pm
Criterion Covered Total %
branch 37 40 92.5


line true false branch
110 0 0 $_[0]->invocant ? :
145 6 327 if ($sig->is_yadayada)
151 297 30 unless $self->no_checks
153 47 268 if $sig->is_named
154 268 47 if $sig->is_positional
155 176 139 if $sig->is_optional
156 133 182 if $sig->is_optional and $sig->is_positional
158 30 285 if $sig->is_slurpy
164 213 15 unless $self->no_checks
174 32 196 if ($self->num_slurpy)
193 3 210 if ($self->num_slurpy and not $self->num_yadayada || $self->positional_parameters->[-1]->is_slurpy)
220 13 229 if ($sig_string =~ s/ ^ \s* (\$ $IDENTIFIER) \s* : \s* //x)
233 35 207 unless $param_string =~ /\S/
239 0 207 unless $statement
246 2 6 if ($token->class eq 'PPI::Token::Magic' and $token->content eq '$,' and _all_tokens_in_listref_are_whitespace($tokens_by_param[-1]))
259 132 1438 if ($token->class eq 'PPI::Token::Operator' and $token->content eq ',') { }
268 8 1562 $token->class eq 'PPI::Token::Label' ? :
277 3 336 unless $code =~ /\S/
291 283 51 if $param->is_positional
310 336 144 if $token->significant