Condition Coverage

lib/Net/API/CPAN/Mock.pm
Criterion Covered Total %
condition 463 1028 45.0


and 2 conditions

line l !l condition
151 0 0 $self->{'checksum'} and $self->{'checksum'} eq $checksum and $self->{'specs'} and ref $self->{'specs'} eq "HASH" and scalar keys %{$$self{"specs"};}

and 3 conditions

line !l l&&!r l&&r condition
151 2 0 0 $self->{'checksum'} and $self->{'checksum'} eq $checksum
2 0 0 $self->{'checksum'} and $self->{'checksum'} eq $checksum and $self->{'specs'}
0 0 0 $self->{'checksum'} and $self->{'checksum'} eq $checksum and $self->{'specs'} and ref $self->{'specs'} eq "HASH"
177 782 0 0 ref $schema eq "HASH" and exists $$processed{$self->_refaddr($schema)}
281 0 0 68 exists $hash->{'type'} and defined $hash->{'type'}
0 68 0 exists $hash->{'type'} and defined $hash->{'type'} and $hash->{'type'} eq "array"
386 0 0 0 exists $hash->{'items'} && defined $hash->{'items'}
496 0 0 730 defined $elem and ref $elem eq "HASH"
512 0 0 192 exists $this->{'requestBody'}{'content'} && defined $this->{'requestBody'}{'content'}
753 0 0 0 defined $ct and length($ct // "")
1106 0 0 2 exists $form->{'user'} and length $form->{'user'}
1286 0 0 2 exists $form->{'release'} and length $form->{'release'}
1300 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}{$module}
1354 2 0 44 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
2 42 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
1404 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}{$module}
1457 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'contributions'}
1502 2 0 0 exists $data->{'users'}{'modules'} and ref $data->{'users'}{'modules'} eq "HASH"
2 0 0 exists $data->{'users'}{'modules'} and ref $data->{'users'}{'modules'} eq "HASH" and exists $data->{'users'}{'modules'}{$package}
0 0 0 exists $data->{'users'}{'modules'} and ref $data->{'users'}{'modules'} eq "HASH" and exists $data->{'users'}{'modules'}{$package} and ref $data->{'users'}{'modules'}{$package} eq "HASH"
0 0 0 exists $data->{'users'}{'modules'} and ref $data->{'users'}{'modules'} eq "HASH" and exists $data->{'users'}{'modules'}{$package} and ref $data->{'users'}{'modules'}{$package} eq "HASH" and exists $data->{'users'}{'modules'}{$package}{'contributors'}
0 0 0 exists $data->{'users'}{'modules'} and ref $data->{'users'}{'modules'} eq "HASH" and exists $data->{'users'}{'modules'}{$package} and ref $data->{'users'}{'modules'}{$package} eq "HASH" and exists $data->{'users'}{'modules'}{$package}{'contributors'} and ref $data->{'users'}{'modules'}{$package}{'contributors'} eq "ARRAY"
1666 1 1 0 defined $type and $type eq "text/plain"
0 2 0 not $accept->is_empty and $accept->first eq "text/plain"
1756 0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2}
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'}
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'} and exists $data->{'users'}{$author2}{'modules'}
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'} and exists $data->{'users'}{$author2}{'modules'} and ref $data->{'users'}{$author1}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'} and exists $data->{'users'}{$author2}{'modules'} and ref $data->{'users'}{$author1}{'modules'} eq "HASH" and ref $data->{'users'}{$author2}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'} and exists $data->{'users'}{$author2}{'modules'} and ref $data->{'users'}{$author1}{'modules'} eq "HASH" and ref $data->{'users'}{$author2}{'modules'} eq "HASH" and exists $data->{'users'}{$author1}{'modules'}{$package1}
0 0 2 exists $data->{'users'}{$author1} and exists $data->{'users'}{$author2} and exists $data->{'users'}{$author1}{'modules'} and exists $data->{'users'}{$author2}{'modules'} and ref $data->{'users'}{$author1}{'modules'} eq "HASH" and ref $data->{'users'}{$author2}{'modules'} eq "HASH" and exists $data->{'users'}{$author1}{'modules'}{$package1} and exists $data->{'users'}{$author2}{'modules'}{$package2}
1795 1 1 0 defined $type and $type eq "text/plain"
0 2 0 not $accept->is_empty and $accept->first eq "text/plain"
1879 0 144 2 not defined $ref1 and $data->{'users'}{$user}{'modules'}{$package}{'id'} eq $file1
1884 6 138 2 not defined $ref2 and $data->{'users'}{$user}{'modules'}{$package}{'id'} eq $file2
1889 144 0 2 defined $ref1 and defined $ref2
1893 0 0 2 defined $ref1 and defined $ref2
1925 0 2 0 not $accept->is_empty and $accept->first eq "text/plain"
2021 0 0 46 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 44 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
2108 2 0 2 exists $opts->{'distribution'} and $opts->{'distribution'}
2109 0 0 4 exists $form->{'distribution'} and length $form->{'distribution'}
2124 0 0 92 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 88 4 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
2263 0 0 46 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 44 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$mod}
2349 44 0 2 $this->{'user'} eq $id and exists $this->{'modules'}{$module}
2414 0 0 60 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 58 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
2501 0 0 60 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
2624 0 0 60 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 58 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
2770 0 0 46 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
2872 0 0 0 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3196 0 0 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3337 0 0 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3388 0 0 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3535 0 0 6 exists $form->{'module'} and length($form->{'module'} // "")
3548 0 0 6 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3674 0 0 120 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
3899 0 0 60 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
4055 0 0 4 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
4201 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH" and exists $data->{'users'}{$author}{'modules'}{$package}
4259 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH" and exists $data->{'users'}{$author}{'modules'}{$package}
4406 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH" and exists $data->{'users'}{$author}{'modules'}{$package}
4542 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
4598 0 0 60 exists $data->{'users'}{$user} and exists $data->{'users'}{$user}{'modules'}
0 0 60 exists $data->{'users'}{$user} and exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 58 2 exists $data->{'users'}{$user} and exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
4666 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH" and exists $data->{'users'}{$author}{'modules'}{$package}
4816 0 0 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
5301 0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'}
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH"
0 0 2 exists $data->{'users'}{$author} and exists $data->{'users'}{$author}{'modules'} and ref $data->{'users'}{$author}{'modules'} eq "HASH" and exists $data->{'users'}{$author}{'modules'}{$package}
5356 0 0 46 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
0 44 2 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH" and exists $data->{'users'}{$user}{'modules'}{$package}
5412 0 0 30 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
5503 46 0 1 exists $opts->{'query'} and defined $opts->{'query'}
46 0 1 exists $opts->{'query'} and defined $opts->{'query'} and length $opts->{'query'}
23 0 23 $req->method eq "POST" and $req->headers->type
23 0 23 $req->method eq "POST" and $req->headers->type and $req->headers->type eq "application/json"
5533 0 0 840 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
5573 0 0 390 exists $data->{'users'}{$user}{'modules'} and ref $data->{'users'}{$user}{'modules'} eq "HASH"
5577 0 0 1257 exists $this->{'provides'} and ref $this->{'provides'} eq "ARRAY"
0 1255 2 exists $this->{'provides'} and ref $this->{'provides'} eq "ARRAY" and join(" ", @{$this->{'provides'};}) =~ /$re/

or 2 conditions

line l !l condition
85 2 0 getprotobyname 'tcp' || (return $self->error("Unable to get TCP proto: $!"))
90 0 2 $self->{'host'} || '127.0.0.1'
91 2 0 Socket::inet_aton($host) || (return $self->error("Unable to resolve ${host}: $!"))
136 2 0 shift @_ || (return $self->error('No openapi specifications file was provided.'))
160 2 0 $file->load_json('boolean_values', [0, 1]) || (return $self->pass_error($file->error))
161 2 0 $specs->{'paths'} || (return $self->error(q[No 'paths' property found in the openapi specifications provided.]))
187 782 0 substr($schema, 0, 4) // ""
230 1924 0 ref $ref // ""
238 70 0 &$resolve_ref($schema, 'context', $ctx) || (return $self->pass_error)
273 860 0 shift @_ || (return $self->error('No schema specification hash reference was provided.'))
284 712 0 &$resolve_ref($hash->{'$ref'}, 'context', $ctx) || (return $self->pass_error)
310 4 0 &$load_properties($elem, 'context', $ctx, 'prefix', [@{$opts->{'prefix'};}, '[allOf]']) || (return $self->pass_error)
317 28 0 $props // "undef"
404 0 0 &$load_properties($items->{$t}, 'context', $ctx, 'prefix', [@{$opts->{'prefix'};}, '{items}', $t]) || (return $self->pass_error)
415 0 0 &$load_properties($items, 'context', $ctx, 'prefix', [@{$opts->{'prefix'};}, '{items}']) || (return $self->pass_error)
433 860 0 $props // "undef"
586 856 0 &$load_properties($this->{'responses'}{$code}{'content'}{$ct}{'schema'}, 'context', $def->{$path}{$meth}, 'prefix', ["\U$meth\E $path"]) || (return $self->pass_error)
642 1 0 $self->socket || (return $self->error('Socket lost somehow'))
753 0 0 $ct // ""
944 2 0 $self->data || (return $self->error('No mock data could be found.'))
946 0 2 $opts->{'lang'} || 'en_GB'
947 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1004 2 0 $self->data || (return $self->error('No mock data could be found.'))
1006 0 2 $opts->{'lang'} || 'en_GB'
1007 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1051 2 0 $self->data || (return $self->error('No mock data could be found.'))
1053 0 2 $opts->{'lang'} || 'en_GB'
1054 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1058 2 0 $vars->{'prefix'} || (return $self->error({'code', 404, 'message', 'The requested info could not be found'}))
1060 0 2 $form->{'from'} // 0
1061 0 2 $form->{'size'} // 10
1101 2 0 $self->data || (return $self->error('No mock data could be found.'))
1103 0 2 $opts->{'lang'} || 'en_GB'
1104 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1151 2 0 $self->data || (return $self->error('No mock data could be found.'))
1153 0 2 $opts->{'lang'} || 'en_GB'
1154 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1158 2 0 $vars->{'user'} || (return $self->error({'code', 404, 'message', 'The requested info could not be found'}))
1191 2 0 $self->data || (return $self->error('No mock data could be found.'))
1193 0 2 $opts->{'lang'} || 'en_GB'
1194 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1198 2 0 $vars->{'author'} || (return $self->_GetAuthor(%$opts))
1241 1 0 $self->data || (return $self->error('No mock data could be found.'))
1243 0 1 $opts->{'lang'} || 'en_GB'
1244 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1280 2 0 $self->data || (return $self->error('No mock data could be found.'))
1282 0 2 $opts->{'lang'} || 'en_GB'
1283 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1341 2 0 $self->data || (return $self->error('No mock data could be found.'))
1343 0 2 $opts->{'lang'} || 'en_GB'
1344 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1348 2 0 $vars->{'distribution'} || (return $self->error({'code', 404, 'message', 'Not found'}))
1390 2 0 $self->data || (return $self->error('No mock data could be found.'))
1392 0 2 $opts->{'lang'} || 'en_GB'
1393 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1397 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing param: author'}))
1399 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing param: release'}))
1444 2 0 $self->data || (return $self->error('No mock data could be found.'))
1446 0 2 $opts->{'lang'} || 'en_GB'
1447 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1451 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing param: author'}))
1454 0 2 $form->{'total'} || 3
1487 2 0 $self->data || (return $self->error('No mock data could be found.'))
1489 0 2 $opts->{'lang'} || 'en_GB'
1490 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1494 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing param: author'}))
1496 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing param: release'}))
1545 2 0 $self->data || (return $self->error('No mock data could be found.'))
1547 0 2 $opts->{'lang'} || 'en_GB'
1548 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1552 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing param: release'}))
1622 2 0 $self->data || (return $self->error('No mock data could be found.'))
1624 0 2 $opts->{'lang'} || 'en_GB'
1625 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1629 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing param: distribution'}))
1734 2 0 $self->data || (return $self->error('No mock data could be found.'))
1736 0 2 $opts->{'lang'} || 'en_GB'
1737 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1741 2 0 $vars->{'author1'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author1'}))
1743 2 0 $vars->{'author2'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author2'}))
1745 2 0 $vars->{'release1'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release1'}))
1747 2 0 $vars->{'release2'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release2'}))
1860 2 0 $self->data || (return $self->error('No mock data could be found.'))
1862 0 2 $opts->{'lang'} || 'en_GB'
1863 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
1868 2 0 $vars->{'file1'} || (return $self->error({'code', 404, 'message', 'Not found'}))
1870 2 0 $vars->{'file2'} || (return $self->error({'code', 404, 'message', 'Not found'}))
1921 1 1 $req->headers->type // "application/json"
2009 2 0 $self->data || (return $self->error('No mock data could be found.'))
2011 0 2 $opts->{'lang'} || 'en_GB'
2012 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2016 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing param: distribution'}))
2103 4 0 $self->data || (return $self->error('No mock data could be found.'))
2105 0 4 $opts->{'lang'} || 'en_GB'
2106 4 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2170 2 0 $self->data || (return $self->error('No mock data could be found.'))
2172 0 2 $opts->{'lang'} || 'en_GB'
2173 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2177 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing param: distribution'}))
2213 1 0 $self->data || (return $self->error('No mock data could be found.'))
2215 0 1 $opts->{'lang'} || 'en_GB'
2216 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2252 2 0 $self->data || (return $self->error('No mock data could be found.'))
2254 0 2 $opts->{'lang'} || 'en_GB'
2255 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2259 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing param: module'}))
2332 2 0 $self->data || (return $self->error('No mock data could be found.'))
2334 0 2 $opts->{'lang'} || 'en_GB'
2335 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2340 2 0 $vars->{'user'} || (return $self->error({'code', 400, 'message', 'Missing param: user'}))
2343 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing param: distribution'}))
2395 2 0 $self->data || (return $self->error('No mock data could be found.'))
2397 0 2 $opts->{'lang'} || 'en_GB'
2398 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2401 2 0 $form->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing param: distribution'}))
2447 2 0 $self->data || (return $self->error('No mock data could be found.'))
2449 0 2 $opts->{'lang'} || 'en_GB'
2450 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2455 2 0 $vars->{'user'} || (return $self->error({'code', 400, 'message', 'Missing param: user'}))
2493 2 0 $self->data || (return $self->error('No mock data could be found.'))
2495 0 2 $opts->{'lang'} || 'en_GB'
2496 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2550 2 0 $self->data || (return $self->error('No mock data could be found.'))
2552 0 2 $opts->{'lang'} || 'en_GB'
2553 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2555 0 2 $form->{'page'} //= 1
2556 0 2 $form->{'size'} //= 10
2558 2 0 $page ||= 1
2559 2 0 $self->_build_recent || (return $self->pass_error)
2611 2 0 $self->data || (return $self->error('No mock data could be found.'))
2613 0 2 $opts->{'lang'} || 'en_GB'
2614 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2619 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Not found'}))
2687 1 0 $self->data || (return $self->error('No mock data could be found.'))
2689 0 1 $opts->{'lang'} || 'en_GB'
2690 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2752 2 0 $self->data || (return $self->error('No mock data could be found.'))
2754 0 2 $opts->{'lang'} || 'en_GB'
2755 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2759 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
2761 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
2843 2 0 $self->data || (return $self->error('No mock data could be found.'))
2845 0 2 $opts->{'lang'} || 'en_GB'
2846 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2850 2 0 $vars->{'path'} || (return $self->error({'code', 400, 'message', 'Missing parameter: path'}))
2932 1 0 $self->data || (return $self->error('No mock data could be found.'))
2934 0 1 $opts->{'lang'} || 'en_GB'
2935 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
2972 2 0 $self->data || (return $self->error('No mock data could be found.'))
2974 0 2 $opts->{'lang'} || 'en_GB'
2975 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3004 2 0 $self->data || (return $self->error('No mock data could be found.'))
3006 0 2 $opts->{'lang'} || 'en_GB'
3007 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3036 2 0 $self->data || (return $self->error('No mock data could be found.'))
3038 0 2 $opts->{'lang'} || 'en_GB'
3039 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3067 2 0 $self->data || (return $self->error('No mock data could be found.'))
3069 0 2 $opts->{'lang'} || 'en_GB'
3070 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3096 4 0 $self->data || (return $self->error('No mock data could be found.'))
3098 0 4 $opts->{'lang'} || 'en_GB'
3099 4 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3185 2 0 $self->data || (return $self->error('No mock data could be found.'))
3187 0 2 $opts->{'lang'} || 'en_GB'
3188 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3192 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
3253 1 0 $self->data || (return $self->error('No mock data could be found.'))
3255 0 1 $opts->{'lang'} || 'en_GB'
3256 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3325 2 0 $self->data || (return $self->error('No mock data could be found.'))
3327 0 2 $opts->{'lang'} || 'en_GB'
3328 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3332 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing parameter: distribution'}))
3377 2 0 $self->data || (return $self->error('No mock data could be found.'))
3379 0 2 $opts->{'lang'} || 'en_GB'
3380 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3384 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
3467 2 0 $self->data || (return $self->error('No mock data could be found.'))
3469 0 2 $opts->{'lang'} || 'en_GB'
3470 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3474 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
3529 6 0 $self->data || (return $self->error('No mock data could be found.'))
3531 0 6 $opts->{'lang'} || 'en_GB'
3532 6 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3535 6 0 $form->{'module'} // ""
3587 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
3606 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
3627 2 0 $self->data || (return $self->error('No mock data could be found.'))
3629 0 2 $opts->{'lang'} || 'en_GB'
3630 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3633 2 0 $pod // ""
3657 4 0 $self->data || (return $self->error('No mock data could be found.'))
3659 0 4 $opts->{'lang'} || 'en_GB'
3660 4 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3667 4 0 $module // ""
3668 0 4 $form->{'content-type'} || 'text/plain'
3796 4 0 $res // ""
3820 2 0 $self->data || (return $self->error('No mock data could be found.'))
3822 0 2 $opts->{'lang'} || 'en_GB'
3823 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3827 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
3829 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
3831 2 0 $vars->{'path'} || (return $self->error({'code', 400, 'message', 'Missing parameter: path'}))
3886 2 0 $self->data || (return $self->error('No mock data could be found.'))
3888 0 2 $opts->{'lang'} || 'en_GB'
3889 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
3965 1 0 $self->data || (return $self->error('No mock data could be found.'))
3967 0 1 $opts->{'lang'} || 'en_GB'
3968 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4037 4 0 $self->data || (return $self->error('No mock data could be found.'))
4039 0 4 $opts->{'lang'} || 'en_GB'
4040 4 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4044 2 0 $opts->{'distribution'} || $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing parameter: distribution'}))
4096 2 0 $self->data || (return $self->error('No mock data could be found.'))
4098 0 2 $opts->{'lang'} || 'en_GB'
4099 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4103 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4105 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
4126 4 0 $self->data || (return $self->error('No mock data could be found.'))
4128 0 4 $opts->{'lang'} || 'en_GB'
4129 4 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4133 4 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4186 2 0 $self->data || (return $self->error('No mock data could be found.'))
4188 0 2 $opts->{'lang'} || 'en_GB'
4189 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4193 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4195 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
4244 2 0 $self->data || (return $self->error('No mock data could be found.'))
4246 0 2 $opts->{'lang'} || 'en_GB'
4247 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4251 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4253 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
4391 2 0 $self->data || (return $self->error('No mock data could be found.'))
4393 0 2 $opts->{'lang'} || 'en_GB'
4394 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4398 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4400 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
4532 2 0 $self->data || (return $self->error('No mock data could be found.'))
4534 0 2 $opts->{'lang'} || 'en_GB'
4535 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4539 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4580 2 0 $self->data || (return $self->error('No mock data could be found.'))
4582 0 2 $opts->{'lang'} || 'en_GB'
4583 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4587 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing parameter: distribution'}))
4646 2 0 $self->data || (return $self->error('No mock data could be found.'))
4648 0 2 $opts->{'lang'} || 'en_GB'
4649 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4653 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
4655 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
4708 2 0 $self->data || (return $self->error('No mock data could be found.'))
4710 0 2 $opts->{'lang'} || 'en_GB'
4711 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4713 0 2 $form->{'page'} //= 1
4714 0 2 $form->{'size'} //= 10
4716 2 0 $page ||= 1
4717 2 0 $self->_build_recent || (return $self->pass_error)
4768 2 0 $self->data || (return $self->error('No mock data could be found.'))
4770 0 2 $opts->{'lang'} || 'en_GB'
4771 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4803 2 0 $self->data || (return $self->error('No mock data could be found.'))
4805 0 2 $opts->{'lang'} || 'en_GB'
4806 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4810 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing parameter: distribution'}))
4868 1 0 $self->data || (return $self->error('No mock data could be found.'))
4870 0 1 $opts->{'lang'} || 'en_GB'
4871 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4908 2 0 $self->data || (return $self->error('No mock data could be found.'))
4910 0 2 $opts->{'lang'} || 'en_GB'
4911 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4915 2 0 $vars->{'distribution'} || (return $self->error({'code', 400, 'message', 'Missing parameter: distribution'}))
4954 2 0 $self->data || (return $self->error('No mock data could be found.'))
4956 0 2 $opts->{'lang'} || 'en_GB'
4957 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
4961 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
4988 1 0 $self->data || (return $self->error('No mock data could be found.'))
4990 0 1 $opts->{'lang'} || 'en_GB'
4991 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5011 1 0 $self->data || (return $self->error('No mock data could be found.'))
5013 0 1 $opts->{'lang'} || 'en_GB'
5014 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5068 1 0 $self->data || (return $self->error('No mock data could be found.'))
5070 0 1 $opts->{'lang'} || 'en_GB'
5071 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5130 1 0 $self->data || (return $self->error('No mock data could be found.'))
5132 0 1 $opts->{'lang'} || 'en_GB'
5133 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5202 1 0 $self->data || (return $self->error('No mock data could be found.'))
5204 0 1 $opts->{'lang'} || 'en_GB'
5205 1 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5209 0 1 $form->{'from'} // 0
5210 0 1 $form->{'size'} // 10
5286 2 0 $self->data || (return $self->error('No mock data could be found.'))
5288 0 2 $opts->{'lang'} || 'en_GB'
5289 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5293 2 0 $vars->{'author'} || (return $self->error({'code', 400, 'message', 'Missing parameter: author'}))
5295 2 0 $vars->{'release'} || (return $self->error({'code', 400, 'message', 'Missing parameter: release'}))
5345 2 0 $self->data || (return $self->error('No mock data could be found.'))
5347 0 2 $opts->{'lang'} || 'en_GB'
5348 2 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5352 2 0 $vars->{'module'} || (return $self->error({'code', 400, 'message', 'Missing parameter: module'}))
5400 4 0 $self->data || (return $self->error('No mock data could be found.'))
5488 47 0 $self->data || (return $self->error('No mock data could be found.'))
5490 0 47 $opts->{'lang'} || 'en_GB'
5491 47 0 $opts->{'request'} || (return $self->error('No request object was provided.'))
5496 0 47 $form->{'from'} // 0
5497 0 47 $form->{'size'} // 10
5499 47 0 $opts->{'type'} || (return $self->error({'code', 500, 'message', 'Missing "type" parameter for _search method.'}))
5501 47 0 $opts->{'callback'} || (return $self->error({'code', 500, 'message', 'Missing "callback" parameter for _search method.'}))
5518 15 8 $form->{'q'} // ""
5538 28 0 $opts->{'total'} // 29178966

or 3 conditions

line l !l&&r !l&&!r condition
96 0 2 0 $self->{'port'} || int(rand 5000) + 10000
162 0 0 2 not defined $paths or ref $paths ne "HASH"
332 0 0 80 not exists $hash->{'type'} or $hash->{'type'} ne "object"
386 0 0 0 not exists $hash->{'items'} && defined $hash->{'items'} or ref $hash->{'items'} ne "HASH"
395 0 0 0 exists $items->{'allOf'} or exists $items->{'anyOf'}
0 0 0 exists $items->{'allOf'} or exists $items->{'anyOf'} or exists $items->{'oneOf'}
435 0 0 860 not defined $props or ref $props ne "HASH"
510 202 14 192 $meth eq "get" or $meth eq "delete"
512 0 0 192 not defined $this->{'requestBody'} or ref $this->{'requestBody'} ne "HASH"
0 0 192 not exists $this->{'requestBody'}{'content'} && defined $this->{'requestBody'}{'content'} or ref $this->{'requestBody'}{'content'} ne "HASH"
539 0 0 408 not defined $this->{'responses'} or ref $this->{'responses'} ne "HASH"
556 0 0 816 not defined $this->{'responses'}{$code} or ref $this->{'responses'}{$code} ne "HASH"
0 0 816 not defined $this->{'responses'}{$code}{'content'} or ref $this->{'responses'}{$code}{'content'} ne "HASH"
574 0 0 856 not defined $this->{'responses'}{$code}{'content'}{$ct}{'schema'} or ref $this->{'responses'}{$code}{'content'}{$ct}{'schema'} ne "HASH"
653 0 0 0 $parser->parse_fh($socket, 'request', 1) || do {
678 0 0 0 $self->endpoints || do {
747 0 0 0 $meth eq "delete" or $meth eq "get"
0 0 0 $meth eq "delete" or $meth eq "get" or $meth eq "head"
816 0 0 0 exists $data->{$op_id} or exists $alias->{$op_id}
824 0 0 0 &$handler($self, 'def', $def, 'lang', $lang, 'request', $req, 'vars', $ep_vars) || do {
1666 0 0 2 defined $type and $type eq "text/plain" or not $accept->is_empty and $accept->first eq "text/plain"
1795 0 0 2 defined $type and $type eq "text/plain" or not $accept->is_empty and $accept->first eq "text/plain"
1925 0 0 2 $type eq "text/plain" or not $accept->is_empty and $accept->first eq "text/plain"
2774 0 0 2 !length($path) || substr($path, -1, 1) eq '/'
5019 1 0 0 $form->{'q'} || do {
5076 1 0 0 $form->{'q'} || do {
5138 1 0 0 $form->{'q'} || do {
5212 1 0 0 $form->{'q'} || do {
5246 1 0 97 $this->{'package'} =~ /$q/ or $this->{'abstract'} =~ /$q/
1 0 97 $this->{'package'} =~ /$q/ or $this->{'abstract'} =~ /$q/ or $this->{'name'} =~ /$q/
0 0 97 $this->{'package'} =~ /$q/ or $this->{'abstract'} =~ /$q/ or $this->{'name'} =~ /$q/ or $this->{'distribution'} =~ /$q/
5560 6 0 174 $this->{'pauseid'} =~ /$re/ or $this->{'name'} =~ /$re/
6 0 174 $this->{'pauseid'} =~ /$re/ or $this->{'name'} =~ /$re/ or $this->{'email'} =~ /$re/
0 0 174 $this->{'pauseid'} =~ /$re/ or $this->{'name'} =~ /$re/ or $this->{'email'} =~ /$re/ or $this->{'city'} =~ /$re/
5577 0 8 1266 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/
8 9 1257 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/ or $this->{'distribution'} =~ /$re/
17 0 1257 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/ or $this->{'distribution'} =~ /$re/ or $this->{'id'} =~ /$re/
9 0 1257 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/ or $this->{'distribution'} =~ /$re/ or $this->{'id'} =~ /$re/ or $this->{'name'} =~ /$re/
0 0 1257 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/ or $this->{'distribution'} =~ /$re/ or $this->{'id'} =~ /$re/ or $this->{'name'} =~ /$re/ or $this->{'package'} =~ /$re/
0 0 1257 $this->{'abstract'} =~ /$re/ or $this->{'author'} =~ /$re/ or $this->{'distribution'} =~ /$re/ or $this->{'id'} =~ /$re/ or $this->{'name'} =~ /$re/ or $this->{'package'} =~ /$re/ or exists $this->{'provides'} and ref $this->{'provides'} eq "ARRAY" and join(" ", @{$this->{'provides'};}) =~ /$re/