Branch Coverage

blib/lib/Type/Params.pm
Criterion Covered Total %
branch 65 74 87.8


line true false branch
52 1 70 $pfx ? :
1 71 defined $pfx && $pfx =~ /::\z/ ? :
60 1 70 $sfx ? :
1 71 defined $sfx && $sfx =~ /\A_/ ? :
95 4 0 if defined $_->{'~~caller'}
118 4 7 @_ ? :
126 1 259 if (@_ % 2)
131 1 258 if exists $opts{'goto_next'}
143 1 47 unless (@_ % 2)
149 2 45 if exists $opts{'goto_next'}
151 3 44 if (ref $function eq "ARRAY")
158 0 44 $function =~ /::/ ? :
160 0 44 $function =~ /::(\w+)$/ ? :
161 35 3 exists &$fullname ? :
162 12 32 if ($opts{'method'})
165 1 43 if ($opts{'fallback'} and not $opts{'next'})
166 1 0 ref $opts{'fallback'} ? :
168 1 43 unless ($opts{'next'})
188 1 40 if (my $cb = $PRE_INSTALL{$package})
197 1 40 if (my $cb = $POST_INSTALL{$package})
206 1 1 unless (@_ % 2)
217 1 1 unless (@_ % 2)
254 0 2548 Types::Standard::is_Undef($_) ? :
122 2548 Types::Standard::is_Ref($_) ? :
1465 2670 Types::TypeTiny::is_TypeTiny($_) ? :
488 4135 if (Types::Standard::is_HashRef($_)) { }
268 0 9 ref $_[0] eq 'HASH' ? :
285 16 12 ref $_[0] eq 'HASH' ? :
295 3 4 ref $_[0] eq 'HASH' ? :
303 0 2 ref $_[0] eq 'HASH' ? :
312 0 1 ref $_[0] eq 'HASH' ? :
324 0 8 $name =~ /::/ ? :
330 3 1 $opts->{'use_can'} ? :
4 4 if (exists &$fullname) { }
332 2 6 if (ref $proto eq 'CODE') { }
342 1 1 $opts->{'skip_invocant'} ? :
350 4 2 $opts->{'skip_invocant'} ? :