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 330 if $self->is_yadayada
225 9 319 if $self->required_flag eq '!'
227 14 305 if $self->required_flag eq '?'
228 104 201 if $self->has_default
229 41 160 if $self->is_named
230 25 135 if $self->is_slurpy
246 212 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 275 if $original_code =~ s/^ ($TYPESPEC) \s+ //ox
349 1 329 unless $original_code =~ s/ ^ \s* ([\\:]*) \s* ($VARIABLE) \s* ([!?]?) //ox
355 23 306 if $postmod
357 329 0 if ($var)
358 8 321 if ($var eq '$') { }
388 33 264 if ($self->is_slurpy)
389 4 29 if $signature->num_slurpy >= 1
391 2 27 if $self->is_named
395 47 244 if ($self->is_named) { }
396 2 45 if ($signature->num_optional_positional)
403 3 241 if ($signature->num_named)
411 1 126 if ($self->is_required and $signature->num_optional_positional and not $signature->num_slurpy)