Branch Coverage

blib/lib/Class/Injection.pm
Criterion Covered Total %
branch 35 72 48.6


line true false branch
28 2 2 unless ($target)
40 2 0 if (ref $secondvalue) { }
46 0 2 $DEBUG || $$secondvalue{'debug'} =~ /^(true|yes|1)$/i ? :
48 2 0 $$secondvalue{'replace'} =~ /^(true|yes|1)$/i ? :
55 0 2 if ($copymethod eq 'replace')
67 0 2 if ($priority < $Class::Injection::counter_neg)
71 2 0 if ($priority < $Class::Injection::counter_pos)
78 2 0 if ($priority eq '')
79 0 2 if ($copymethod eq 'insert') { }
88 0 2 unless ($target)
114 0 1 if ($DEBUG)
130 0 2 unless ('Class::Inspector'->loaded($source))
131 0 0 unless ('Class::Inspector'->installed($source))
185 2 0 if ($$col{$source}{'replacetarget'})
228 0 1 unless ($$replace_target{$target})
246 0 2 if ($met_returntype)
250 2 0 if ($met_returnmethod)
268 0 2 if ($priority < 0)
272 2 0 if (0 < $priority)
284 1 0 if ($returntype eq 'array') { }
0 0 elsif ($returntype eq 'scalar') { }
0 0 elsif ($returntype eq 'hash') { }
298 0 1 if ($returnmethod eq 'last')
301 0 1 if ($returnmethod eq 'all')
304 0 1 if ($returnmethod eq 'original')
307 1 0 if ($returnmethod eq 'collect')
316 1 0 if ($returnmethod eq 'collect') { }
335 0 1 if ($DEBUG)
346 0 1 if $DEBUG
348 0 3 if $Class::Injection::break_flag
0 3 if $Class::Injection::break_flag
1 2 wantarray ? :
349 0 1 if ($@)
414 2 0 if ($$param{'replacetarget'})
422 0 2 if ($priority < 0) { }
438 0 1 unless $replacetarget