| blib/lib/MetaCPAN/Client.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 38 | 52.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 207 | 0 | 0 | 0 | $params and not is_hashref($params) |
| 210 | 0 | 0 | 0 | $params->{'fields'} and not is_arrayref($params->{'fields'}) |
| 293 | 2 | 41 | 0 | scalar @_ == 3 and !defined($_[2]) || is_hashref($_[2]) |
| 312 | 44 | 0 | 1 | $type eq "cve" and is_hashref($response) |
| 44 | 0 | 1 | $type eq "cve" and is_hashref($response) and is_arrayref($response->{'cve'}) | |
| 376 | 0 | 1 | 41 | defined $arg and not is_ref($arg) |
| line | l | !l | condition |
|---|---|---|---|
| 118 | 0 | 1 | shift() || {} |
| 178 | 0 | 0 | shift() || 100 |
| 303 | 0 | 46 | $fields_filter || '' |
| 354 | 3 | 9 | $params ||= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 46 | 0 | 20 | 0 | $args{'request'} ||= "MetaCPAN::Client::Request"->new(("ua", $args{'ua'}) x !!$args{'ua'}, ("ua_args", $args{'ua_args'}) x !!$args{'ua_args'}, ("domain", $args{'domain'}) x !!$args{'domain'}, ("debug", $args{'debug'}) x !!$args{'debug'}) |
| 293 | 40 | 0 | 1 | !defined($_[2]) || is_hashref($_[2]) |
| 6 | 0 | 43 | scalar @_ == 2 or scalar @_ == 3 and !defined($_[2]) || is_hashref($_[2]) | |
| 351 | 9 | 3 | 1 | not defined $params or is_hashref($params) |