line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Amazon::MechanicalTurk::Transport; |
2
|
18
|
|
|
18
|
|
95
|
use strict; |
|
18
|
|
|
|
|
32
|
|
|
18
|
|
|
|
|
655
|
|
3
|
18
|
|
|
18
|
|
91
|
use warnings; |
|
18
|
|
|
|
|
36
|
|
|
18
|
|
|
|
|
548
|
|
4
|
18
|
|
|
18
|
|
122
|
use Carp; |
|
18
|
|
|
|
|
97
|
|
|
18
|
|
|
|
|
1255
|
|
5
|
18
|
|
|
18
|
|
100
|
use Net::Amazon::MechanicalTurk::BaseObject; |
|
18
|
|
|
|
|
396
|
|
|
18
|
|
|
|
|
377
|
|
6
|
18
|
|
|
18
|
|
10878
|
use Net::Amazon::MechanicalTurk::ModuleUtil; |
|
18
|
|
|
|
|
141
|
|
|
18
|
|
|
|
|
1196
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.00'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @ISA = qw{ Net::Amazon::MechanicalTurk::BaseObject }; |
11
|
|
|
|
|
|
|
|
12
|
18
|
|
|
18
|
|
117
|
use constant DEFAULT_TRANSPORT => "REST"; |
|
18
|
|
|
|
|
36
|
|
|
18
|
|
|
|
|
4008
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub create { |
15
|
17
|
|
|
17
|
0
|
49
|
my $class = shift; |
16
|
17
|
|
50
|
|
|
303
|
my $transport = shift || $ENV{MTURK_TRANSPORT} || DEFAULT_TRANSPORT; |
17
|
17
|
|
|
|
|
72
|
my $module = "Net::Amazon::MechanicalTurk::Transport::${transport}Transport"; |
18
|
17
|
50
|
|
|
|
184
|
if (!Net::Amazon::MechanicalTurk::ModuleUtil->tryRequire($module)) { |
19
|
0
|
|
|
|
|
0
|
Carp::croak "Could not load transport $transport - $@"; |
20
|
|
|
|
|
|
|
} |
21
|
17
|
|
|
|
|
437
|
return $module->new(@_); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub call { |
25
|
0
|
|
|
0
|
0
|
|
my ($self, $client, $operation, $params) = @_; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
return 1; |