Branch Coverage

blib/lib/Module/Build/Bundle.pm
Criterion Covered Total %
branch 27 76 35.5


line true false branch
25 0 0 unless ($self->{'_completed_actions'}{'contents'})
54 3 4 if ($myPERL_VERSION ge 5.12.0) { }
55 1 2 if ($version) { }
62 2 2 if ($version) { }
77 4 0 $self->notes('temp_wd') ? :
82 0 3 unless my $contents = read_file($file)
86 0 3 unless ($rv)
90 0 3 unless open my $fout, '>', $file
95 0 3 unless close $fout
103 0 1 if $self->{'wrote_metadata'}
106 0 1 unless ($p->{'license'})
118 0 1 if (($self->module_name || '') eq 'Module::Build')
130 1 0 if (@created)
144 1 0 if $args{'auto'}
149 0 5 unless (defined $field and length $field)
151 0 0 if ($fatal) { }
171 1 0 exists $p->{'dynamic_config'} ? :
177 0 1 if defined $meta_license_url
181 0 1 if (exists $p->{'no_index'}) { }
1 0 elsif (my $pkgs = eval { do { $self->find_dist_packages } }) { }
184 1 0 if %$pkgs
190 1 0 if (my $add = $self->meta_add)
191 1 0 if (not exists $add->{'meta-spec'} or $add->{'meta-spec'}{'version'} != 2)
193 1 0 if ('CPAN::Meta::Converter'->VERSION('2.141170')) { }
207 1 0 if (my $merge = $self->meta_merge)
208 1 0 if (eval { do { require CPAN::Meta::Merge } }) { }
233 0 0 if $keys
240 0 0 unless defined $node->{$name} and length $node->{$name}
244 0 0 if (defined(my $l = $self->license))
246 0 0 unless exists $self->valid_licenses->{$l}
248 0 0 if (my $key = $self->valid_licenses->{$l})
250 0 0 if (eval "use $class; 1") { }
264 0 0 if (exists $p->{$type})
274 0 0 if ($self->dist_name ne 'Module-Build' and $self->auto_configure_requires and not exists $prereq_types{'configure_requires'}{'Module::Build'})
287 0 0 if (exists $p->{'dynamic_config'})
291 0 0 if ($@) { }
295 0 0 if %$pkgs
298 0 0 if (exists $p->{'no_index'})