Branch Coverage

blib/lib/Class/Classless/C3.pm
Criterion Covered Total %
branch 46 66 69.7


line true false branch
28 6 3 ref $parent ? :
52 0 0 ref $self ? :
0 14 unless my $sub = $self->can($AUTOLOAD)
54 1 13 if ref $trace eq 'SCALAR'
69 13 0 unless $method =~ /^(\(eval\)|__ANON__|DB::.*)$/
73 5 8 unless $sub
74 3 5 if ref $trace eq 'SCALAR'
92 2 2 if (ref $what) { }
93 1 1 grep(($_ eq $what), @$c3) ? :
95 1 1 grep(($$_{'_meta'}{'name'} eq $what), @$c3) ? :
109 13 17 $_[0] && $_[0] eq 'from' ? :
111 0 30 unless ($$self{'_meta'})
118 27 59 if ($from)
119 14 13 if $$o{'_meta'}{'name'} ne $from
123 59 0 if (ref $o and $$o{'_meta'}) { }
125 22 37 if $sub
127 0 37 if (ref $Class::Classless::C3::autoload eq 'CODE')
129 0 0 if $sub
133 0 0 if $sub
138 1 7 if $sub
170 10 22 if (@_)
171 0 10 if $$self{'name'}
174 1 9 unless ($$self{'name'})
186 9 1 if (@_)
188 0 9 if @{$$self{'parents'};}
190 0 9 unless ref $par
199 0 1 if (@_)
200 0 0 if $$self{'parents'}
201 0 0 if (ref $_[0] eq 'ARRAY') { }
216 0 1 unless $newp
250 1 3 if $sym =~ /^(AUTOLOAD|NEXT|can|isa|VERSION|meta|new)$/
252 1 2 if (defined $sub)
267 2 43 if (grep(($who eq $$_{'_meta'}{'name'}), @{$Class::Classless::C3::c3cache{$k};}))