line |
true |
false |
branch |
152
|
11 |
5 |
ref $object ? :
|
157
|
5 |
27 |
unless (ref $object)
|
158
|
2 |
3 |
if (exists $Test::Mock::Wrapper::GLOBAL_MOCKS{$object})
|
165
|
1 |
2 |
if $metaclass->is_immutable
|
172
|
1 |
7 |
if ($method_name eq 'new') { }
|
175
|
1 |
0 |
$$controll{'__options'}{'recordType'} eq 'copy' ? :
|
196
|
3 |
23 |
if ($$controll{'__metaclass'})
|
198
|
10 |
0 |
if ($$sym{'symbol'})
|
226
|
50 |
0 |
$$self{'__options'}{'recordType'} eq 'copy' ? :
|
229
|
40 |
10 |
if ($$self{'__mocks'}{$method})
|
231
|
40 |
0 |
if ($mock)
|
237
|
9 |
1 |
if ($$self{'__options'}{'type'} ne 'wrap') { }
|
244
|
1 |
0 |
if ($$self{'__metaclass'}) { }
|
323
|
2 |
49 |
if ($$self{'__options'}{'type'} eq 'stub') { }
|
|
36 |
13 |
elsif ($$self{'__options'}{'type'} eq 'mock') { }
|
330
|
9 |
4 |
if ($$self{'__mocks'}{$method} and $$self{'__mocks'}{$method}->hasMock(@args)) { }
|
347
|
0 |
0 |
if (exists $$self{'__calls'}{$method})
|
377
|
1 |
1 |
if (defined $method and length $method) { }
|
394
|
1 |
1 |
if (defined $method and length $method) { }
|
413
|
3 |
23 |
if ($$self{'__metaclass'})
|
415
|
1 |
0 |
if $inst
|
439
|
4 |
25 |
if exists $args{'with'}
|
440
|
11 |
18 |
if exists $args{'returns'}
|
448
|
49 |
4 |
if ($mock->_matches(@args))
|
465
|
0 |
29 |
if ($args{'with'})
|
468
|
0 |
29 |
if ($args{'returns'})
|
483
|
0 |
14 |
scalar @value > 1 ? :
|
494
|
16 |
37 |
if (exists $$self{'_condition'}) { }
|
503
|
0 |
40 |
if (ref $$self{'_return'} eq 'ARRAY') { }
|
|
2 |
38 |
elsif (ref $$self{'_return'} eq 'CODE') { }
|
535
|
46 |
5 |
if ($$self{'__controller'}->isMocked($method, @args)) { }
|
539
|
3 |
2 |
if ($$self{'__object'}->can($method)) { }
|