Branch Coverage

blib/lib/BackPAN/Version/Discover/_BackPAN/Index.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
51 0 0 if $self->cache_dir
69 0 0 unless $self->debug
85 0 0 if (not -e $db_file) { }
0 0 elsif (defined $self->update) { }
100 0 0 -e $self->_backpan_index_archive ? :
101 0 0 if $db_mtime < $archive_mtime
104 0 0 if -e $db_file and $should_update_db
109 0 0 if $self->_database_is_empty
111 0 0 unless $should_update_db
150 0 0 if ($files{$path}++)
155 0 0 if (not defined $path && defined $date && defined $size or @junk)
160 0 0 unless $size
161 0 0 if $only_authors and not $path =~ m[^authors/]
165 0 0 if $path =~ /\.(readme|meta)$/
170 0 0 unless $i->dist
194 0 0 if (not defined $$distdata{'first_release'} or $date < $$distdata{'first_date'})
202 0 0 if (not defined $$distdata{'latest_release'} or $date > $$distdata{'latest_date'})
237 0 0 unless $self->files->count
238 0 0 unless $self->releases->count
319 0 0 unless $self->_backpan_index_has_changed
322 0 0 unless is_success $status
331 0 0 unless $ae->extract('to', $self->_backpan_index_file)
366 0 0 unless -e $file
370 0 0 unless $local_age > $self->cache->ttl
396 0 0 unless defined $dist