Branch Coverage

blib/lib/Function/Parameters.pm
Criterion Covered Total %
branch 88 110 80.0


line true false branch
28 85 193 $with_dollar ? :
29 5 273 unless $name =~ /\A${bonus}[^\W\d]\w*\z/u
35 2 76 unless $attrs =~ / \A \s*+ : \s*+ (?&ident) (?! [^\s:(] ) (?¶m)?+ \s*+ (?: (?: : \s*+ )? (?&ident) (?! [^\s:(] ) (?¶m)?+ \s*+ )*+ \z (?(DEFINE) (? [^\W\d] \w*+ ) (? \( [^()\\]*+ (?: (?: \\ . | (?¶m) ) [^()\\]*+ )*+ \) ) ) /sux
81 0 72 unless $_[0] =~ /\G ( \w+ (?: :: \w+)* ) \s* /cgux
83 72 0 unless $name =~ /::/u
86 2 70 unless defined &$name
90 62 8 unless $_[0] =~ /\G \[ \s* /cgux
95 8 8 if @args
111 4 72 if ($_[0] =~ /\G \( \s* /cgux) { }
113 0 4 unless $_[0] =~ /\G \) \s* /cgux
127 70 4 !$compl ? :
168 0 28 unless $type =~ /\G \z/cgux
174 120 1056 exists $href->{$key} ? :
181 0 0 if ($array->[$i] == $x)
186 1 0 unless (defined $index)
291 27 69 unless @_
294 51 51 if (ref $item) { }
297 2 49 unless my $type = $import_map{$item}
299 46 3 ref $type ? :
312 125 46 unless ref $proto_type
316 1 344 unless my $base = $type_map{$defaults}
321 21 149 if (exists $type{'strict'})
329 0 170 unless $clean{'name'} =~ /\A(?:optional|required|prohibited)\z/u
333 78 92 if $clean{'attrs'}
335 164 4 if (not exists $type{'reify_type'}) { }
339 0 4 if (not ref $rt) { }
0 4 elsif (ref $rt ne 'CODE') { }
340 0 0 $rt eq 'moose' ? :
0 0 $rt eq 'auto' ? :
351 150 18 if (not exists $type{'install_sub'}) { }
355 17 1 if (not ref $is) { }
0 1 elsif (ref $is ne 'CODE') { }
366 76 92 unless ref $shift
371 1 84 if (ref $item) { }
372 0 1 unless @$item == 2
378 0 85 if $name eq "\$_"
380 1 84 if (defined $type)
381 0 1 unless &blessed($type)
399 1 167 if %type
410 25 137 $type->{'name'} eq 'required' ? :
5 162 $type->{'name'} eq 'prohibited' ? :
413 166 1 if $type->{'default_arguments'}
414 152 15 if $type->{'check_argument_count'}
415 167 0 if $type->{'check_argument_types'}
416 76 91 if $type->{'invocant'}
417 167 0 if $type->{'named_parameters'}
418 167 0 if $type->{'types'}
419 15 152 if $type->{'runtime'}
428 166 1 !@{$type->{'shift_types'};} ? :
437 3 5 unless (@_)
463 36 520 defined $slurpy ? :
478 12 4 unless $pair
12 4 unless my($v, $t) = @{[] unless $pair;}
498 0 18 unless my $key = &_cv_root($func)
499 2 16 unless my $info = $metadata{$key}