Branch Coverage

blib/lib/Shipwright/Source/CPAN.pm
Criterion Covered Total %
branch 6 38 15.7


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/) { }
96 0 0 if ('Module::CoreList'->is_core($self->source))
101 0 0 if ($self->version)
117 0 0 if $self->source eq 'perl'
123 0 0 if ($self->source =~ /\.tar\.gz$/) { }
128 0 0 unless ($distribution)
144 0 0 $self->source =~ /^Bundle/ ? :
147 0 0 unless ($module)
160 0 0 if ($self->version)
163 0 0 if ($latest_version =~ /^v/ and not $version =~ /^v/)
173 0 0 if (not $name) { }
0 0 elsif ($name eq 'perl') { }
191 0 0 if (-e $file and -s $file) { }