line |
true |
false |
branch |
24
|
5 |
0 |
if (defined $config) |
26
|
6 |
14 |
if (exists $config->{$cv}) |
38
|
0 |
5 |
if ($self->is_logged_in) |
46
|
1 |
0 |
if (defined $request) |
48
|
0 |
1 |
if (exists $self->{'client'}) { } |
54
|
0 |
1 |
if ($self->{'session_id'}) { } |
58
|
0 |
1 |
if (defined $self->{'config'}{'password'}) |
61
|
0 |
1 |
if (defined $self->{'config'}{'username'}) |
67
|
1 |
0 |
unless defined $request->{'version'} |
69
|
1 |
0 |
unless defined $request->{'id'} |
71
|
1 |
0 |
unless defined $request->{'params'}{'language'} |
78
|
1 |
0 |
if ($@) |
80
|
1 |
0 |
unless ($status_line =~ /^2[0-9]{2} /) |
95
|
0 |
0 |
unless $user |
96
|
0 |
0 |
unless $pass |
104
|
0 |
0 |
if ($res->{'is_success'}) |
135
|
0 |
0 |
unless ($fname) |
137
|
0 |
0 |
if (-r $_) |
143
|
0 |
0 |
unless open my $fh, "<", $fname |
164
|
15 |
0 |
if (/^\s*(\S[^:=]+)[:=]\s*(\S.+)$/) |
172
|
0 |
15 |
unless $valid{$key} |
177
|
0 |
3 |
unless exists $config->{'apikey'} |
178
|
2 |
1 |
unless ($config->{'url'} =~ m[/src/jsonrpc[.]php$]) |
188
|
2 |
3 |
unless $self->{'config'}{'apikey'} |
190
|
1 |
2 |
unless $self->{'config'}{'url'} |