line |
true |
false |
branch |
177
|
0 |
0 |
unless defined $config |
188
|
0 |
0 |
unless $config->{'no_proxy'} |
242
|
0 |
0 |
unless my $ref = $self->edit($query) |
249
|
0 |
0 |
unless $login->{'result'} eq 'Success' |
333
|
0 |
0 |
unless $self->{'config'}{'api_url'} |
339
|
0 |
0 |
if defined $self->{'config'}{'max_lag'} |
345
|
0 |
0 |
if ($self->{'config'}{'use_http_get'} and $self->{'config'}{'get_actions'}{$query->{'action'}}) |
356
|
0 |
0 |
if ($try > 0) |
363
|
0 |
0 |
if ($querystring) { } |
366
|
0 |
0 |
if $query->{'action'} eq 'upload' or $query->{'action'} eq 'import' |
372
|
0 |
0 |
if ($response->is_success) { } |
376
|
0 |
0 |
unless (defined $decontent) |
377
|
0 |
0 |
if $try == $retries |
382
|
0 |
0 |
if (length $decontent == 0) |
383
|
0 |
0 |
if $try == $retries |
393
|
0 |
0 |
if ($@) { } |
396
|
0 |
0 |
if $try == $retries |
407
|
0 |
0 |
if $try == $retries |
414
|
0 |
0 |
if ref $ref eq 'ARRAY' and scalar @{$ref;} == 0 |
417
|
0 |
0 |
if (ref $ref eq 'HASH' and exists $ref->{'error'} and $ref->{'error'}{'code'} eq 'maxlag') |
418
|
0 |
0 |
if ($maxlagretries == $self->{'config'}{'max_lag_retries'}) { } |
422
|
0 |
0 |
if $maxlagretries < $self->{'config'}{'max_lag_retries'} |
434
|
0 |
0 |
if ref $ref eq 'HASH' and exists $ref->{'error'} |
537
|
0 |
0 |
if ($action eq 'createaccount') { } |
|
0 |
0 |
elsif ($action eq 'login') { } |
|
0 |
0 |
elsif ($action eq 'patrol') { } |
|
0 |
0 |
elsif ($action eq 'rollback') { } |
|
0 |
0 |
elsif ($action eq 'userrights') { } |
552
|
0 |
0 |
unless my $token = $self->_get_token($token_type) |
558
|
0 |
0 |
unless my $ref = $self->api($query, $options) |
601
|
0 |
0 |
unless my $ref = $self->api({'action', 'query', 'prop', 'revisions', 'titles', $params->{'title'}, 'rvprop', 'ids|flags|timestamp|user|comment|size|content'}) |
609
|
0 |
0 |
if defined $pageref->{'missing'} |
665
|
0 |
0 |
unless defined $options->{'max'} |
672
|
0 |
0 |
unless $ref = $self->api($query, $options) |
675
|
0 |
0 |
unless $ref->{'query'}{$list} |
678
|
0 |
0 |
if (exists $ref->{'query-continue'}) { } |
687
|
0 |
0 |
if (defined $options->{'hook'}) { } |
697
|
0 |
0 |
if defined $options->{'hook'} |
739
|
0 |
0 |
if ($1 == 1 and $2 < 16) |
755
|
0 |
0 |
unless $self->{'config'}{'upload_url'} |
769
|
0 |
0 |
unless $response->code == 302 |
795
|
0 |
0 |
unless defined $params->{'title'} |
800
|
0 |
0 |
unless my $ref = $self->api({'action', 'query', 'titles', $params->{'title'}, 'prop', 'imageinfo', 'iiprop', 'url'}) |
807
|
0 |
0 |
unless defined $pageref->{'imageinfo'} |
811
|
0 |
0 |
unless ($url =~ m[^https?\://]) |
813
|
0 |
0 |
unless defined $self->{'config'}{'files_url'} |
818
|
0 |
0 |
unless $response->code == 200 |
827
|
0 |
0 |
if exists $self->{'config'}{'mw_ver'} |
828
|
0 |
0 |
unless my $ref = $self->api({'action', 'query', 'meta', 'siteinfo'}) |
846
|
0 |
0 |
if not defined $ref->{$key} or ref $ref->{$key} |
849
|
0 |
0 |
if (not $skipenc and !utf8::is_utf8($ref->{$key}) || $URI::VERSION < 1.36) |
857
|
0 |
0 |
if $URI::VERSION >= 1.36 |
881
|
0 |
0 |
if defined $token |
885
|
0 |
0 |
unless my $ref = $self->api($query) |
889
|
0 |
0 |
unless defined $token |
903
|
0 |
0 |
if defined $self->{'config'}{'on_error'} |