Condition Coverage

blib/lib/MetaCPAN/API/Tiny.pm
Criterion Covered Total %
condition 20 37 54.0


and 3 conditions

line !l l&&!r l&&r condition
22 1 10 0 $params{'ua_args'} and ref $params{'ua_args'} ne 'ARRAY'
68 1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'})
1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'}) and defined(my $path = $opts{'path'})
101 1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'})
109 0 0 0 ref $search_opts and ref $search_opts eq 'HASH'
132 1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'})
1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'}) and defined(my $path = $opts{'path'})
193 0 0 0 ref $search_opts and ref $search_opts eq 'HASH'
231 2 0 2 ref $query and ref $query eq 'HASH'
252 1 0 14 ref $result and ref $result eq 'HASH'

or 2 conditions

line l !l condition
29 0 11 $params{'base_url'} || 'http://api.metacpan.org/v0'
259 5 7 $$result{'reason'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
29 0 11 0 $params{'ua'} || 'HTTP::Tiny'->new($params{'ua_args'} ? @{$params{'ua_args'};} : ('agent', 'MetaCPAN::API::Tiny/' . ($MetaCPAN::API::VERSION || 'xx')))