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 332 if ($sig->is_yadayada)
151 302 30 unless $self->no_checks
153 47 273 if $sig->is_named
154 273 47 if $sig->is_positional
155 176 144 if $sig->is_optional
156 133 187 if $sig->is_optional and $sig->is_positional
158 30 290 if $sig->is_slurpy
164 217 15 unless $self->no_checks
174 32 200 if ($self->num_slurpy)
193 3 214 if ($self->num_slurpy and not $self->num_yadayada || $self->positional_parameters->[-1]->is_slurpy)
220 13 233 if ($sig_string =~ s/ ^ \s* (\$ $IDENTIFIER) \s* : \s* //x)
233 36 210 unless $param_string =~ /\S/
239 0 210 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 134 1445 if ($token->class eq 'PPI::Token::Operator' and $token->content eq ',') { }
268 8 1571 $token->class eq 'PPI::Token::Label' ? :
277 3 341 unless $code =~ /\S/
291 288 51 if $param->is_positional
310 341 146 if $token->significant