line |
!l |
l&&!r |
l&&r |
condition |
86
|
0 |
2 |
0 |
exists $self->{'ua'} and $self->_is_a($self->{'ua'}, "HTTP::Promise")
|
104
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "")
|
116
|
0 |
0 |
0 |
exists $opts->{'distribution'} and length($opts->{'distribution'} // "")
|
|
0 |
0 |
0 |
exists $opts->{'module'} and length($opts->{'module'} // "")
|
166
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_array($_[0])
|
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
|
0 |
0 |
0 |
scalar @_ == 1 and !ref($_[0]) || ref $_[0] && overload::Method($_[0], '""')
|
279
|
0 |
0 |
0 |
defined $ref and ref $ref eq "HASH"
|
|
0 |
0 |
0 |
defined $ref and ref $ref eq "HASH" and exists $ref->{'hits'}
|
|
0 |
0 |
0 |
defined $ref and ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH"
|
|
0 |
0 |
0 |
defined $ref and ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH" and exists $ref->{'hits'}{'hits'}
|
|
0 |
0 |
0 |
defined $ref and ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH" and exists $ref->{'hits'}{'hits'} and ref $ref->{'hits'}{'hits'} eq "ARRAY"
|
291
|
0 |
0 |
0 |
ref $this eq "HASH" and exists $this->{'fields'}
|
|
0 |
0 |
0 |
ref $this eq "HASH" and exists $this->{'fields'} and ref $this->{'fields'} eq "HASH"
|
319
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'release'} and defined $opts->{'release'}
|
329
|
0 |
0 |
0 |
$self->_is_array($opts->{'author'}) and $self->_is_array($opts->{'release'})
|
418
|
0 |
0 |
0 |
exists $self->{'_cached_clientinfo'} and defined $self->{'_cached_clientinfo'}
|
453
|
0 |
0 |
0 |
defined $info->{$stage}{$prop} and length $info->{$stage}{$prop}
|
|
0 |
0 |
0 |
defined $info->{$stage}{$prop} and length $info->{$stage}{$prop} and lc substr($info->{$stage}{$prop}, 0, 4) eq "http"
|
469
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
531
|
0 |
0 |
0 |
exists $opts->{'file1'} and exists $opts->{'file2'}
|
|
0 |
0 |
0 |
exists $opts->{'author1'} and exists $opts->{'release1'}
|
|
0 |
0 |
0 |
exists $opts->{'author1'} and exists $opts->{'release1'} and exists $opts->{'release2'}
|
599
|
0 |
0 |
0 |
scalar @_ == 1 and !ref($_[0]) || ref $_[0] && overload::Method($_[0], '""')
|
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
676
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
719
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'favorites'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'favorites'} and ref $ref->{'favorites'} eq "HASH"
|
740
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'users'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'users'} and ref $ref->{'users'} eq "ARRAY"
|
767
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'leaderboard'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'leaderboard'} and ref $ref->{'leaderboard'} eq "ARRAY"
|
856
|
0 |
0 |
0 |
exists $opts->{'method'} and lc $opts->{'method'} ne "post"
|
|
0 |
0 |
0 |
exists $opts->{'method'} and lc $opts->{'method'} ne "post" and lc $opts->{'method'} ne "put"
|
899
|
0 |
0 |
0 |
ref $query and overload::Method($query, "\"\"")
|
940
|
0 |
0 |
0 |
defined $payload and defined $headers
|
|
0 |
0 |
0 |
defined $payload and defined $headers and not scalar grep(/^Content[_-]Type$/i, @$headers)
|
1053
|
0 |
0 |
0 |
exists $opts->{'list_preprocess'} && ref $opts->{'list_preprocess'} eq 'CODE'
|
|
0 |
0 |
0 |
exists $opts->{'list_postprocess'} && ref $opts->{'list_postprocess'} eq 'CODE'
|
|
0 |
0 |
0 |
exists $opts->{'args'} && ref $opts->{'args'} eq 'HASH'
|
1094
|
0 |
0 |
0 |
exists $data->{'error'} and defined $data->{'error'}
|
1097
|
0 |
0 |
0 |
ref $data->{'error'} eq "HASH" and exists $data->{'error'}{'message'}
|
1134
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
1153
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'dir'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'path'}
|
1184
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'dir'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'dir'} and ref $ref->{'dir'} eq "ARRAY"
|
1191
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH"
|
1280
|
0 |
0 |
0 |
$type eq "module" and exists $opts->{'module'}
|
|
0 |
0 |
0 |
$type eq "file" and exists $opts->{'distribution'}
|
|
0 |
0 |
0 |
$type eq "documentation" and exists $opts->{'module'}
|
1330
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
1349
|
0 |
0 |
0 |
exists $opts->{'module'} and length($opts->{'module'} // "")
|
1385
|
0 |
0 |
0 |
exists $ref->{$t} and ref $ref->{$t} eq "HASH"
|
|
0 |
0 |
0 |
exists $ref->{$t} and ref $ref->{$t} eq "HASH" and exists $ref->{$t}{'_source'}
|
|
0 |
0 |
0 |
exists $ref->{$t} and ref $ref->{$t} eq "HASH" and exists $ref->{$t}{'_source'} and ref $ref->{$t}{'_source'} eq "HASH"
|
1428
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
|
0 |
0 |
0 |
scalar @_ == 1 and !ref($_[0]) || ref $_[0] && overload::Method($_[0], '""')
|
1472
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'hits'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH"
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH" and exists $ref->{'hits'}{'hits'}
|
|
0 |
0 |
0 |
ref $ref eq "HASH" and exists $ref->{'hits'} and ref $ref->{'hits'} eq "HASH" and exists $ref->{'hits'}{'hits'} and ref $ref->{'hits'}{'hits'} eq "ARRAY"
|
1481
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH"
|
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH" and exists $this->{'_source'}
|
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH" and exists $this->{'_source'} and ref $this->{'_source'} eq "HASH"
|
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH" and exists $this->{'_source'} and ref $this->{'_source'} eq "HASH" and exists $this->{'_source'}{'version'}
|
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH" and exists $this->{'_source'} and ref $this->{'_source'} eq "HASH" and exists $this->{'_source'}{'version'} and defined $this->{'_source'}{'version'}
|
|
0 |
0 |
0 |
defined $this and ref $this eq "HASH" and exists $this->{'_source'} and ref $this->{'_source'} eq "HASH" and exists $this->{'_source'}{'version'} and defined $this->{'_source'}{'version'} and $this->{'_source'}{'version'} eq "undef"
|
1506
|
0 |
0 |
0 |
ref $ref eq "HASH" and not exists $ref->{'modules'}
|
1540
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
1632
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'path'}
|
1706
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
1782
|
0 |
0 |
0 |
scalar @_ == 1 and $self->_is_a($_[0], "Net::API::CPAN::Filter")
|
1802
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'contributors'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'files'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'modules'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'} and exists $opts->{'interesting_files'} || exists $opts->{'interesting'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and exists $opts->{'latest'}
|
|
0 |
0 |
0 |
exists $opts->{'distribution'} and exists $opts->{'latest'}
|
|
0 |
0 |
0 |
exists $opts->{'distribution'} and exists $opts->{'versions'}
|
1898
|
0 |
0 |
0 |
exists $ref->{'release'} and defined $ref->{'release'}
|
|
0 |
0 |
0 |
exists $ref->{'release'} and defined $ref->{'release'} and ref $ref->{'release'} eq "HASH"
|
1930
|
0 |
0 |
0 |
exists $ref->{'release'} and defined $ref->{'release'}
|
|
0 |
0 |
0 |
exists $ref->{'release'} and defined $ref->{'release'} and ref $ref->{'release'} eq "HASH"
|
1946
|
0 |
0 |
0 |
exists $opts->{'plain'} and not $self->_is_empty($opts->{'plain'})
|
1952
|
0 |
0 |
0 |
defined $opts->{'versions'} and length "$opts->{'versions'}"
|
2033
|
0 |
0 |
0 |
exists $opts->{'distribution'} and length($opts->{'distribution'} // "")
|
|
0 |
0 |
0 |
exists $opts->{'module'} and length($opts->{'module'} // "")
|
2098
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "")
|
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "") and exists $opts->{'release'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "") and exists $opts->{'release'} and length($opts->{'release'} // "")
|
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "") and exists $opts->{'release'} and length($opts->{'release'} // "") and exists $opts->{'path'}
|
|
0 |
0 |
0 |
exists $opts->{'author'} and length($opts->{'author'} // "") and exists $opts->{'release'} and length($opts->{'release'} // "") and exists $opts->{'path'} and length($opts->{'path'} // "")
|
|
0 |
0 |
0 |
exists $opts->{'module'} and length($opts->{'module'} // "")
|
2148
|
0 |
0 |
0 |
exists $opts->{'range'} and not $self->_is_empty($opts->{'range'})
|
|
0 |
0 |
0 |
exists $opts->{'range'} and not $self->_is_empty($opts->{'range'}) and $opts->{'range'} =~ /^\w+$/
|
2154
|
0 |
0 |
0 |
exists $opts->{'size'} and not $self->_is_empty($opts->{'size'})
|
|
0 |
0 |
0 |
exists $opts->{'size'} and not $self->_is_empty($opts->{'size'}) and $opts->{'size'} =~ /^\d+$/
|
2169
|
0 |
0 |
0 |
exists $ref->{'counts'} and defined $ref->{'counts'}
|
|
0 |
0 |
0 |
exists $ref->{'counts'} and defined $ref->{'counts'} and ref $ref->{'counts'} eq "HASH"
|
2227
|
0 |
0 |
0 |
exists $opts->{'fields'} and length($opts->{'fields'} // "")
|
2233
|
0 |
0 |
0 |
ref $fields and $self->_is_scalar($fields)
|
|
0 |
0 |
0 |
ref $fields and $self->_is_scalar($fields) and $self->_can_overload($fields, "\"\"")
|
2237
|
0 |
0 |
0 |
ref $_ and $self->_is_scalar($_)
|
|
0 |
0 |
0 |
ref $_ and $self->_is_scalar($_) and $self->_can_overload($_, "\"\"")
|
line |
l |
!l |
condition |
88
|
2 |
0 |
'HTTP::Promise'->new(%$UA_OPTS, 'debug', $self->debug) || (return $self->pass_error('HTTP::Promise'->error))
|
104
|
0 |
0 |
$opts->{'author'} // ""
|
116
|
0 |
0 |
$opts->{'distribution'} // ""
|
|
0 |
0 |
$opts->{'module'} // ""
|
180
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
277
|
0 |
0 |
shift @_ || die("No autcomplete data was provided to preprocess.\n")
|
612
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
657
|
0 |
0 |
shift @_ || (return $self->error('No module provided to retrieve its download URL.'))
|
680
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
803
|
0 |
0 |
shift @_ || (return $self->error('No object type was provided.'))
|
807
|
0 |
0 |
$opts->{'class'} || $self->_object_type_to_class($type) || (return $self->pass_error)
|
817
|
0 |
0 |
$req->uri || (return $self->error('No URI set in request object provided.'))
|
818
|
0 |
0 |
$req->method || (return $self->error('No HTTP method set in request object provided.'))
|
823
|
0 |
0 |
$opts->{'endpoint'} || (return $self->error('No endpoint was provided.'))
|
824
|
0 |
0 |
$opts->{'method'} // "get"
|
828
|
0 |
0 |
$self->ua || (return $self->error('The User Agent object is gone!'))
|
872
|
0 |
0 |
$cache_file->load('binmode', ':raw') || (return $self->pass_error($cache_file->error))
|
874
|
0 |
0 |
'HTTP::Promise::Response'->new(200, 'OK', ['Connection', 'close', 'Server', 'local_cache', 'Content_Type', 'application/json; charset=utf-8', 'Cache_Control', 'private', 'Accept_Ranges', 'bytes', 'Date', 'HTTP::Promise'->httpize_datetime($cache_file->last_modified->clone), 'X_Cache', 'MISS, MISS', 'X_Cache_Hits', '0, 0'], $data) || (return $self->pass_error('HTTP::Promise::Response'->error))
|
927
|
0 |
0 |
$ua->request($req) || (return $self->pass_error($ua->error))
|
932
|
0 |
0 |
$ua->get($uri, defined $headers ? @$headers : (), defined $query ? ('Query', $query) : ()) || (return $self->pass_error($ua->error))
|
946
|
0 |
0 |
$ua->post($uri, defined $headers ? @$headers : (), defined $payload ? ('Content', $payload) : ()) || (return $self->pass_error($ua->error))
|
1013
|
0 |
0 |
length $data // 0
|
1020
|
0 |
0 |
$result // "undef"
|
1138
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1274
|
0 |
0 |
$opts->{'type'} || (return $self->error('No history type was provided.'))
|
1275
|
0 |
0 |
$opts->{'path'} || (return $self->error('No path was provided.'))
|
1334
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1349
|
0 |
0 |
$opts->{'module'} // ""
|
1371
|
0 |
0 |
$opts->{'join'} // ""
|
1417
|
0 |
0 |
'Net::API::CPAN::Filter'->new(%$opts, 'debug', $self->debug) || (return $self->pass_error('Net::API::CPAN::Filter'->error))
|
1432
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1544
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1710
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1786
|
0 |
0 |
$filter->as_json('encoding', 'utf8') || (return $self->pass_error($filter->error))
|
1957
|
0 |
0 |
$query //= {}
|
1962
|
0 |
0 |
$query //= {}
|
2033
|
0 |
0 |
$opts->{'distribution'} // ""
|
|
0 |
0 |
$opts->{'module'} // ""
|
2074
|
0 |
0 |
delete $opts->{'type'} || (return $self->error('No API endpoint search type was provided.'))
|
2079
|
0 |
0 |
$self->new_filter($opts) || (return $self->pass_error)
|
2098
|
0 |
0 |
$opts->{'author'} // ""
|
|
0 |
0 |
$opts->{'release'} // ""
|
|
0 |
0 |
$opts->{'path'} // ""
|
|
0 |
0 |
$opts->{'module'} // ""
|
2158
|
0 |
0 |
$query //= {}
|
2206
|
1 |
0 |
shift @_ || (return $self->error('No object type was provided to derive its module name'))
|
2227
|
0 |
0 |
$opts->{'fields'} // ""
|