line |
true |
false |
branch |
88
|
42 |
10 |
exists &$full_name ? : |
142
|
2 |
15 |
if (not &looks_like_number($called) or $called < -1) |
252
|
1 |
28 |
if (@returns == 1 and do {
local $Test::MockPackages::Mock::EVAL_ERROR = undef;
eval {
do {
$returns[0]->isa('Test::MockPackages::Returns')
}
}
}) { } |
299
|
5 |
51 |
if ($self->{'_is_method'}) |
304
|
27 |
29 |
if (my $expects = $self->{'_expects'}) |
307
|
6 |
21 |
if ($n_expects == 1 and defined $self->{'_called'}) { } |
|
1 |
20 |
elsif ($i >= $n_expects) { } |
329
|
29 |
26 |
if (my $returns = $self->{'_returns'}) { } |
332
|
9 |
20 |
if ($n_returns == 1 and defined $self->{'_called'}) { } |
|
2 |
18 |
elsif ($i >= $n_returns) { } |
352
|
1 |
20 |
if (@returns == 1 and do {
local $Test::MockPackages::Mock::EVAL_ERROR = undef;
eval {
do {
$returns[0]->isa('Test::MockPackages::Returns')
}
}
}) |
362
|
14 |
12 |
!wantarray && scalar @returns == 1 ? : |
387
|
37 |
47 |
$self->{'_expects'} ? : |
388
|
34 |
50 |
$self->{'_returns'} ? : |
392
|
22 |
62 |
if (defined $called and $called >= 0) |
395
|
2 |
20 |
if ($n_expects > 1 or $n_returns > 1) |
401
|
10 |
72 |
if ($never) |
404
|
2 |
7 |
if ($called or $n_expects or $n_returns) |
422
|
7 |
45 |
if $self->{'_never'} |
424
|
14 |
31 |
if (defined(my $called = $self->{'_called'})) |
425
|
1 |
13 |
if ($called == -1) |
432
|
14 |
17 |
$self->{'_expects'} ? : |
433
|
16 |
15 |
$self->{'_returns'} ? : |
436
|
25 |
6 |
$max >= 1 ? : |
452
|
40 |
12 |
if (not $self->{'_corrupt'} and defined $expected_invocations) |
460
|
42 |
10 |
if (my $original = $self->{'_original_coderef'}) { } |