Branch Coverage

blib/lib/Sub/SymMethod.pm
Criterion Covered Total %
branch 38 50 76.0


line true false branch
16 0 1 unless (eval {
23 0 1 unless (eval {
30 0 1 unless (eval {
51 7 0 unless exists $args{'origin'}
52 7 0 unless exists $args{'method'}
54 6 1 unless exists $args{'order'}
56 0 7 unless (is_CodeRef($args{'code'}))
65 3 4 'Role::Hooks'->is_role($target) ? :
67 4 3 if ($kind eq 'class' and not $args{'no_dispatcher'})
71 3 4 if ($kind eq 'role' and not $args{'no_hook'})
83 1 5 if (@_ == 2)
93 5 1 if (my $existing = $target->can($name))
94 5 0 if $class->is_dispatcher($existing)
99 0 1 if ($name eq 'BUILD' or $name eq 'DEMOLISH' or $name eq 'new')
125 3 18 if ($spec->{'signature'})
126 1 2 unless is_CodeRef($spec->{'signature'})
132 1 2 unless eval {
160 1 2 if $HOOKED{$target}++
165 2 2 unless ('Role::Hooks'->is_role($consumer))
208 1 2 unless ($CACHE{$name}{$invocant_class})
214 0 1 unless &mro::get_linear_isa($invocant_class)
228 0 1 is_HashRef($sig[0]) ? :
233 1 0 $spec->{'named'} ? :
243 0 5 if ref $target
246 6 1 unless @_ % 2