line |
true |
false |
branch |
152
|
13 |
6 |
ref $object ? :
|
157
|
6 |
29 |
unless (ref $object)
|
158
|
2 |
4 |
if (exists $Test::Mock::Wrapper::GLOBAL_MOCKS{$object})
|
165
|
1 |
3 |
if $metaclass->is_immutable
|
172
|
2 |
10 |
if ($method_name eq 'new') { }
|
175
|
15 |
0 |
$$controll{'__options'}{'recordType'} eq 'copy' ? :
|
196
|
3 |
25 |
if ($$controll{'__metaclass'})
|
198
|
10 |
0 |
if ($$sym{'symbol'})
|
226
|
56 |
0 |
$$self{'__options'}{'recordType'} eq 'copy' ? :
|
229
|
46 |
10 |
if ($$self{'__mocks'}{$method})
|
231
|
46 |
0 |
if ($mock)
|
237
|
9 |
1 |
if ($$self{'__options'}{'type'} ne 'wrap') { }
|
244
|
1 |
0 |
if ($$self{'__metaclass'}) { }
|
323
|
2 |
53 |
if ($$self{'__options'}{'type'} eq 'stub') { }
|
|
36 |
17 |
elsif ($$self{'__options'}{'type'} eq 'mock') { }
|
330
|
13 |
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 |
25 |
if ($$self{'__metaclass'})
|
415
|
1 |
0 |
if $inst
|
439
|
6 |
29 |
if exists $args{'with'}
|
440
|
13 |
22 |
if exists $args{'returns'}
|
449
|
61 |
9 |
if ($mock->_matches(@args))
|
450
|
43 |
18 |
if ($mock->_isDefault) { }
|
470
|
0 |
35 |
if ($args{'with'})
|
473
|
0 |
35 |
if ($args{'returns'})
|
488
|
0 |
20 |
scalar @value > 1 ? :
|
499
|
27 |
43 |
if (exists $$self{'_condition'}) { }
|
508
|
0 |
46 |
if (ref $$self{'_return'} eq 'ARRAY') { }
|
|
4 |
42 |
elsif (ref $$self{'_return'} eq 'CODE') { }
|
540
|
50 |
5 |
if ($$self{'__controller'}->isMocked($method, @args)) { }
|
544
|
3 |
2 |
if ($$self{'__object'}->can($method)) { }
|