Condition Coverage

lib/Test/CPANfile.pm
Criterion Covered Total %
condition 10 21 47.6


and 3 conditions

line !l l&&!r l&&r condition
64 5 0 2 $required_version and $required_version =~ /^[0-9._]+$/
65 0 0 2 defined $declared_version && $req->accepts_module($module, $required_version)
79 0 0 2 $uri && $uri_map{$uri}

or 2 conditions

line l !l condition
28 0 1 delete $args{'cpanfile'} || 'cpanfile'
65 2 0 $required_version || 0
2 0 $declared_version || 0

or 3 conditions

line l !l&&r !l&&!r condition
53 28 8 0 $uri_cache{$module} ||= do { my $res = $index->search_packages({'package', $module}); $res ? $res->{'uri'} : undef }
74 0 2 0 $uri_cache{$module} ||= do { my $res = $index->search_packages({'package', $module}); $res ? $res->{'uri'} : undef }