Branch Coverage

blib/lib/Shipwright/Source/CPAN.pm
Criterion Covered Total %
branch 6 36 16.6


line true false branch
34 0 3 if ('Module::Info'->new_from_module('CPAN::Config'))
41 3 0 if ('Module::Info'->new_from_module('CPAN::MyConfig'))
52 2 1 unless (-f $config_file)
65 0 2 unless ($$CPAN::Config{'urllist'} and @{$$CPAN::Config{'urllist'};})
69 0 2 if ($ENV{'SHIPWRIGHT_CPAN_MIRROR'})
90 0 0 if ($result and $result == 1) { }
0 0 elsif (not $result and $self->source =~ /\S/) { }
97 0 0 if ($self->version)
113 0 0 if $self->source eq 'perl'
119 0 0 if ($self->source =~ /\.tar\.gz$/) { }
124 0 0 unless ($distribution)
140 0 0 $self->source =~ /^Bundle/ ? :
143 0 0 unless ($module)
156 0 0 if ($self->version)
159 0 0 if ($latest_version =~ /^v/ and not $version =~ /^v/)
169 0 0 if (not $name) { }
0 0 elsif ($name eq 'perl') { }
187 0 0 if (-e $file and -s $file) { }