line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mock::Furl::HTTP; |
2
|
6
|
|
|
6
|
|
21554
|
use strict; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
191
|
|
3
|
6
|
|
|
6
|
|
33
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
143
|
|
4
|
6
|
|
|
6
|
|
1054
|
use Test::MockObject; |
|
6
|
|
|
|
|
3549
|
|
|
6
|
|
|
|
|
36
|
|
5
|
6
|
|
|
6
|
|
1213
|
use parent 'Exporter'; |
|
6
|
|
|
|
|
446
|
|
|
6
|
|
|
|
|
30
|
|
6
|
|
|
|
|
|
|
our @EXPORT = qw/$Mock_furl_http/; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $Mock_furl_http; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
BEGIN { |
11
|
6
|
|
|
6
|
|
845
|
$Mock_furl_http = Test::MockObject->new; |
12
|
|
|
|
|
|
|
$Mock_furl_http->fake_module( |
13
|
|
|
|
|
|
|
'Furl::HTTP', |
14
|
|
|
|
|
|
|
new => sub { |
15
|
1
|
|
|
1
|
|
62
|
$Mock_furl_http->{new_args} = [@_]; |
16
|
1
|
|
|
|
|
3
|
$Mock_furl_http; |
17
|
|
|
|
|
|
|
} |
18
|
6
|
|
|
|
|
73
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
#$Mock_furl_http->set_always('request' => ''); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new { |
24
|
0
|
|
|
0
|
1
|
|
$Mock_furl_http; |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$Mock_furl_http->mock( |
28
|
|
|
|
|
|
|
'-new_args' => sub { |
29
|
|
|
|
|
|
|
delete $Mock_furl_http->{new_args}; |
30
|
|
|
|
|
|
|
}, |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
package # hide from PAUSE |
34
|
|
|
|
|
|
|
Furl::HTTP; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $VERSION = 'Mocked'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |