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
20 1 10 0 $params{'ua_args'} and ref $params{'ua_args'} ne 'ARRAY'
66 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'})
99 1 0 1 defined(my $author = $opts{'author'}) and defined(my $release = $opts{'release'})
107 0 0 0 ref $search_opts and ref $search_opts eq 'HASH'
130 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'})
191 0 0 0 ref $search_opts and ref $search_opts eq 'HASH'
229 2 0 2 ref $query and ref $query eq 'HASH'
250 1 0 14 ref $result and ref $result eq 'HASH'

or 2 conditions

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

or 3 conditions

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