Condition Coverage

blib/lib/CPAN/Index.pm
Criterion Covered Total %
condition 15 75 20.0


and 3 conditions

line !l l&&!r l&&r condition
48 0 0 96 $_ and $_ > 0.001
63 1 0 95 $CPAN::Index::LAST_TIME + $CPAN::Config->{'index_expire'} * 86400 > $time and not $force
146 0 0 0 $c and $c->{'perl'}
0 0 0 $c and $c->{'perl'} and $c->{'distribution'}
0 0 0 $c and $c->{'perl'} and $c->{'distribution'} and 'CPAN'->_perl_fingerprint($c->{'perl'})
149 0 0 0 $c->{'distribution'}{$k} and ref $c->{'distribution'}{$k}
0 0 0 $c->{'distribution'}{$k} and ref $c->{'distribution'}{$k} and UNIVERSAL::isa($c->{'distribution'}{$k}, 'CPAN::Distrostatus')
214 3 0 0 -f $abs_wanted and -M $abs_wanted < $CPAN::Config->{'index_expire'}
3 0 0 -f $abs_wanted and -M $abs_wanted < $CPAN::Config->{'index_expire'} and not $force & 1
247 0 0 2 $userid and $fullname
0 0 2 $userid and $fullname and $email
381 0 0 19 $mod and defined $version
0 0 19 $mod and defined $version and $dist
392 19 0 0 $mod eq 'CPAN' and not 'CPAN::Queue'->exists('Bundle::CPAN') || 'CPAN::Queue'->exists('CPAN')
572 0 0 0 -r $metadata_file and -f $metadata_file
577 0 0 0 $cache and UNIVERSAL::isa($cache, 'HASH')

or 2 conditions

line l !l condition
57 0 1 $CPAN::META->{'PROTOCOL'} ||= '1.0'
115 0 0 $CPAN::Config->{'yaml_module'} || 'YAML'
197 0 0 $restored || 'none'

or 3 conditions

line l !l&&r !l&&!r condition
211 3 0 0 $localname ||= $wanted
246 2 0 0 $fullname ||= $email
392 0 0 0 'CPAN::Queue'->exists('Bundle::CPAN') || 'CPAN::Queue'->exists('CPAN')
438 19 0 0 $id->cpan_file ne $dist or $id->cpan_version ne $version
442 0 19 0 $id->userid || $self->userid($dist)
601 0 0 0 $CPAN::META->{'readwrite'}{$class}{$id} ||= $class->new('ID', $id, 'RO', $ro)
617 0 0 0 $CPAN::META->{'PROTOCOL'} ||= $cache->{'PROTOCOL'}