Branch Coverage

blib/lib/Method/Signatures/Parameter.pm
Criterion Covered Total %
branch 55 64 85.9


line true false branch
117 0 0 @{$self->where;} ? :
128 0 0 keys %{$self->traits;} ? :
204 6 335 if $self->is_yadayada
225 9 324 if $self->required_flag eq '!'
227 14 310 if $self->required_flag eq '?'
228 104 206 if $self->has_default
229 41 165 if $self->is_named
230 25 140 if $self->is_slurpy
246 217 117 unless $self->ppi_clean_code =~ /\S/
253 0 117 unless my $statement = $components->find_first('PPI::Statement')
262 0 9 if $] < 5.01
273 95 22 if ($self->_extract_leading(qr/^ = $/x, $tokens)) { }
10 12 elsif ($self->_extract_leading(qr"^ //= $"x, $tokens)) { }
1 11 elsif (my $trailing = $self->_extract_leading(qr/ \S /x, $tokens)) { }
277 44 51 if ($self->_extract_leading(qr/^ when $/x, $tokens))
278 0 44 if $] < 5.01
287 0 10 if $] < 5.01
313 209 330 @$tokens && $$tokens[0] =~ /$selector_pat/x ? :
326 50 280 if $$tokens[0] =~ /$delimiter_pat/
332 35 245 if $token->isa('PPI::Node')
346 55 280 if $original_code =~ s/^ ($TYPESPEC) \s+ //ox
349 1 334 unless $original_code =~ s/ ^ \s* ([\\:]*) \s* ($VARIABLE) \s* ([!?]?) //ox
355 23 311 if $postmod
357 334 0 if ($var)
358 8 326 if ($var eq '$') { }
388 33 269 if ($self->is_slurpy)
389 4 29 if $signature->num_slurpy >= 1
391 2 27 if $self->is_named
395 47 249 if ($self->is_named) { }
396 2 45 if ($signature->num_optional_positional)
403 3 246 if ($signature->num_named)
411 1 131 if ($self->is_required and $signature->num_optional_positional and not $signature->num_slurpy)