Branch Coverage

blib/lib/CPAN/Releases/Latest.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
27 4 0 if ($self->path)
28 3 1 if (-f $self->path) { }
36 0 0 unless ($self->cache_path)
46 0 0 if (-f $self->cache_path)
51 0 0 unless time - $max_age_in_seconds > (stat $self->cache_path)[9]
72 0 0 unless (&is_module_name($base_module_name))
96 0 0 if (defined($stable_release = $distdata->{'released'}{$distname}))
104 0 0 if (defined($developer_release = $distdata->{'developer'}{$distname}) and !defined($stable_release) || $developer_release->{'time'} > $stable_release->{'time'})
143 0 3 @_ > 0 ? :
149 3 0 if (defined $self->path)
157 0 3 unless ($line =~ /^#FORMAT: (\d+)$/)
162 1 2 if ($file_revision > $FORMAT_REVISION)
168 1 1 if ($file_revision < $FORMAT_REVISION)
169 1 0 if ($whatfile eq 'passed')
179 0 0 if ($options->{'rebuilding'})