line |
true |
false |
branch |
96
|
10 |
0 |
if (not $self->private or defined $self->token) |
111
|
0 |
10 |
if (not $self->request) { } |
119
|
0 |
10 |
if (not $self->is_ready_to_send) { } |
141
|
7 |
3 |
if ($self->private) |
147
|
6 |
4 |
if ($self->request->request_type eq 'POST') { } |
|
2 |
2 |
elsif ($self->request->request_type eq 'GET' and $uri->query) { } |
180
|
0 |
0 |
if (ref $content eq 'ARRAY') { } |
|
0 |
0 |
elsif (exists $$content{'error'}) { } |
|
0 |
0 |
elsif ($self->http_response->code != 200) { } |
200
|
10 |
0 |
unless (eval {
do {
my $content;
'???';
$content = $self->json->decode($self->http_response->content);
if (ref $content eq 'ARRAY') {
$self->response($content);
}
elsif (exists $$content{'error'}) {
$self->error({'type', 'LocalBitcoins error', %{$$content{'error'};}});
}
elsif ($self->http_response->code != 200) {
'???';
$self->error({'type', 'Server Response Error', 'message', sprintf('%s Server Response: %s', 'LocalBitcoins', $self->http_response->code)});
}
else {
$self->response($content);
};
1
}
}) |
261
|
1 |
1 |
if exists $args{$attribute} |
270
|
71 |
174 |
if scalar @_ |
278
|
0 |
10 |
$self->send ? : |
314
|
0 |
0 |
ord $_[0] > 57 ? : |
315
|
0 |
0 |
$_[0] > 9 ? : |