Branch Coverage

blib/lib/Mock/Sub/Child.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
15 2 63 if ($self->{'side_effect'})
27 60 13 if ($_[0] and $_[0] =~ /::/)
33 3 70 if ($caller ne 'Mock::Sub::mock' and $sub_passed_in)
35 1 2 if (ref $self eq 'Mock::Sub::Child' and not $self->{'name'})
41 1 71 if ($caller ne 'Mock::Sub::mock' and $caller ne 'Mock::Sub::Child::remock')
53 3 68 unless ($sub =~ /::/)
56 1 2 if (defined &$core_sub and ${^GLOBAL_PHASE} eq 'START') { }
64 2 0 unless $sub =~ /::/
70 5 1 unless (exists &$sub or $sub =~ /CORE::GLOBAL/)
72 4 1 unless ($self->_no_warn)
80 3 68 if (defined $self->{'return_value'})
85 66 5 unless $fake
101 14 74 if ($mock->{'side_effect'})
102 2 12 if (wantarray) { }
104 2 0 if @effect
108 10 1 if defined $effect
112 7 68 unless $mock->{'return'}
116 65 3 !wantarray && @{$mock->{'return'};} == 1 ? :
134 64 11 if (defined $self->{'orig'} and not $sub =~ /CORE::GLOBAL/) { }
138 6 5 if $self->{'name'}
146 10 4 (shift())->called_count ? :
153 1 5 unless ($self->called)
176 4 138 if (defined $_[1] and ref $_[1] ne 'CODE')