| line |
true |
false |
branch |
|
15
|
2 |
58 |
if ($self->{'side_effect'}) |
|
27
|
55 |
9 |
if ($_[0] and $_[0] =~ /::/) |
|
33
|
3 |
61 |
if ($caller ne 'Mock::Sub::mock' and $sub_passed_in) |
|
35
|
1 |
2 |
if (ref $self eq 'Mock::Sub::Child' and not $self->{'name'}) |
|
48
|
3 |
60 |
unless ($sub =~ /::/) |
|
51
|
1 |
2 |
if (defined &$core_sub and ${^GLOBAL_PHASE} eq 'START') { } |
|
59
|
2 |
0 |
unless $sub =~ /::/ |
|
65
|
3 |
1 |
unless (exists &$sub or $sub =~ /CORE::GLOBAL/) |
|
73
|
2 |
61 |
if (defined $self->{'return_value'}) |
|
78
|
60 |
3 |
unless $fake |
|
94
|
14 |
73 |
if ($mock->{'side_effect'}) |
|
95
|
2 |
12 |
if (wantarray) { } |
|
97
|
2 |
0 |
if @effect |
|
101
|
10 |
1 |
if defined $effect |
|
105
|
7 |
67 |
unless $mock->{'return'} |
|
109
|
64 |
3 |
!wantarray && @{$mock->{'return'};} == 1 ? : |
|
124
|
60 |
9 |
if (defined $self->{'orig'} and not $sub =~ /CORE::GLOBAL/) { } |
|
128
|
4 |
5 |
if $self->{'name'} |
|
136
|
10 |
4 |
(shift())->called_count ? : |
|
143
|
1 |
5 |
unless ($self->called) |
|
166
|
4 |
125 |
if (defined $_[1] and ref $_[1] ne 'CODE') |