Branch Coverage

blib/lib/Class/Mixer.pm
Criterion Covered Total %
branch 48 64 75.0


line true false branch
10 0 11 if ref $class
16 7 3 if $self->can('init')
28 0 11 if ${"${class}::REMIX";}
33 0 11 if ($Class::Mixer::DEBUG)
42 0 11 if ($Class::Mixer::DEBUG > 2)
49 0 10 if $Class::Mixer::DEBUG > 1
52 0 10 if ($Class::Mixer::DEBUG)
66 113 90 if exists $$con{$subclass}
71 14 76 defined @{"${subclass}::WASA";} ? :
76 77 192 if ($mixer =~ /^(before|after|isa|requires?|optional)$/)
78 0 77 if $type eq 'require'
98 198 27 if ($vglob and *$vglob{'SCALAR'}) { }
100 0 198 unless defined ${$base . '::VERSION';}
106 0 27 if $@ and not $@ =~ /^Can't locate .*? at \(eval /
107 1 26 unless (%{"${base}::";})
116 26 0 unless defined ${$base . '::VERSION';}
134 81 9 unless $$con{$subclass}{'isa'}
138 17 120 if $k eq 'isa'
140 10 223 if $_ eq $isa
148 87 3 unless $$con{$subclass}{'optional'}
157 84 6 unless $$con{$subclass}{'after'}
164 0 11 if ($Class::Mixer::DEBUG > 5)
191 0 11 if ($Class::Mixer::DEBUG > 4)
211 1 255 if ($stem =~ /\s$$_{'class'}\s/)
216 108 89 if $$node{'visited'}
236 0 27 unless $pkg eq 'Class::Mixer'
247 31 34 if ($mixer =~ /^(before|after|isa|requires?|optional)$/)
249 0 31 if $type eq 'require'
253 33 1 unless $type eq 'optional'
260 25 1 if ($class ne 'main')
261 25 0 if $Class::C3::C3_IN_CORE
262 25 0 unless exists $Class::C3::MRO{$class}