Branch Coverage

blib/lib/CPAN/Common/Index/LocalPackage.pm
Criterion Covered Total %
branch 12 16 75.0


line true false branch
37 1 13 if (not defined $file) { }
1 12 elsif (not -f $file) { }
53 7 21 unless -r $package
61 4 5 if ($source =~ /\.gz$/) { }
62 0 4 unless $CPAN::Common::Index::Mirror::HAS_IO_UNCOMPRESS_GUNZIP
66 4 0 if (not -f $uncompressed or &File::stat::stat($source)->mtime > &File::stat::stat($uncompressed)->mtime)
69 0 4 unless IO::Uncompress::Gunzip::gunzip(map({"$_";} $source, $uncompressed))
75 5 0 if not -e $dest or &File::stat::stat($source)->mtime > &File::stat::stat($dest)->mtime