| line |
true |
false |
branch |
|
131
|
0 |
2 |
unless is_hashref($args) |
|
168
|
0 |
0 |
if $size eq "today" |
|
178
|
0 |
0 |
if $size =~ /^[0-9]+$/ |
|
195
|
0 |
0 |
if ($params and not is_hashref($params)) |
|
199
|
0 |
0 |
if (exists $params->{'fields'} and not is_arrayref($params->{'fields'})) |
|
214
|
3 |
1 |
if (defined $version_or_range) |
|
219
|
2 |
13 |
if (index($version_or_range, $range) != -1) |
|
225
|
1 |
2 |
unless $is_using_range |
|
230
|
1 |
3 |
if (defined $dev) |
|
234
|
3 |
1 |
if scalar @extra |
|
249
|
0 |
0 |
unless (eval {
do {
$res = $self->fetch('/search/autocomplete?q=' . uri_escape_utf8($q));
1
}
}) |
|
269
|
0 |
0 |
unless (eval {
do {
$res = $self->fetch('/search/autocomplete/suggest?q=' . uri_escape_utf8($q));
1
}
}) |
|
282
|
3 |
40 |
unless scalar @_ == 2 or scalar @_ == 3 and !defined($_[2]) || is_hashref($_[2]) |
|
295
|
1 |
45 |
unless is_hashref($response) |
|
298
|
4 |
41 |
if $type eq "download_url" |
|
301
|
1 |
0 |
if ($type eq "cve" and is_hashref($response) and is_arrayref($response->{'cve'})) |
|
312
|
46 |
0 |
unless $params |
|
315
|
0 |
0 |
unless $fields |
|
317
|
0 |
0 |
if (is_arrayref($fields)) { } |
|
|
0 |
0 |
elsif (not ref $fields) { } |
|
318
|
0 |
0 |
if grep {ref $_;} @$fields |
|
337
|
1 |
13 |
unless is_hashref($args) |
|
340
|
1 |
12 |
unless not defined $params or is_hashref($params) |
|
345
|
1 |
11 |
unless grep {$_ eq $type;} @supported_searches |
|
362
|
8 |
42 |
if is_hashref($arg) |
|
365
|
41 |
1 |
if defined $arg and not is_ref($arg) |
|
394
|
0 |
1 |
unless (eval {
do {
$res = $self->fetch("/reverse_dependencies/dist/$dist", {"size", 5000, "query", {"bool", {"must", [{"term", {"status", "latest"}}, {"term", {"authorized", &JSON()->true}}]}}});
1
}
}) |
|
423
|
0 |
0 |
unless (eval {
do {
$res = $self->fetch("/release/_search", {"from", 0, "query", {"match_all", {}}, @args, "sort", [{"date", {"order", "desc"}}]});
1
}
}) |