Branch Coverage

blib/lib/Dist/Zilla/Plugin/StaticInstall.pm
Criterion Covered Total %
branch 72 84 85.7


line true false branch
53 2 31 if $self->dry_run and $self->mode ne 'auto'
62 5 21 $mode eq 'off' ? :
5 26 $mode eq 'on' ? :
63 10 21 if (defined $value)
82 3 22 if ($self->mode ne 'off' and exists $distmeta->{'x_static_install'} and ($$distmeta{'x_static_install'} xor $value))
84 1 2 if $value
86 1 1 $self->mode eq 'on' ? :
87 2 0 unless ref $message
95 0 17 $self->dry_run ? :
17 9 if $message
98 4 22 if $self->dry_run or $value and $self->mode eq 'off'
101 16 1 if (not exists $distmeta->{'x_static_install'} and $self->mode eq 'auto' and not $self->dry_run)
114 1 28 $self->dry_run ? :
117 1 28 if $$distmeta{'dynamic_config'}
120 2 26 unless $$distmeta{'prereqs'}{'configure'}{'requires'}
122 0 1 keys %extra_configure_requires > 1 ? :
1 27 if keys %extra_configure_requires
128 0 1 @build_requires > 1 ? :
1 26 if @build_requires
133 2 24 if (my(@execfiles_plugins) = @{$self->zilla->plugins_with(-'ExecFiles');})
142 1 0 @bad_unempty_execdirs == 1 ? :
1 1 if @bad_unempty_execdirs
146 1 0 if (my(@bad_execdirs) = grep({$_ ne 'script';} map({$_->dir;} grep({$_->isa('Dist::Zilla::Plugin::ExecDir');} @execfiles_plugins))))
152 1 0 @bad_execdirs == 1 ? :
159 0 1 @module_sharedirs > 1 ? :
1 24 if @module_sharedirs
167 1 23 if $installers[-1] != $self
169 1 22 if @installers < 2
175 0 1 @other_installers > 1 ? :
1 21 if @other_installers
178 67 21 unless $_->name eq 'Makefile.PL'
189 1 20 if $added_by =~ /from coderef added by/ or $added_by =~ /filename set by/ or $added_by =~ /content set by .* \((.*) line \d+\)/ and not $1 eq 'Dist::Zilla::Plugin::MakeMaker::Awesome' && &any(sub { &blessed($_) eq 'Dist::Zilla::Plugin::MakeMaker::Fallback'; } , @installers) and not $1 =~ /Dist::Zilla::Plugin::(MakeMaker|ModuleBuildTiny)(::Fallback)?$/
196 6 14 unless $metajson
197 0 14 if $metajson->version < 2
203 0 1 @xs_files > 1 ? :
1 13 if @xs_files
208 3 59 if m[^[^/]*\.(pm|pl|pod)$]
209 1 12 if @root_files
211 0 12 $BASEEXT eq 'lib' ? :
212 1 11 if @baseext_files
215 35 11 if not /^(Makefile|Build)\.PL$/
216 1 10 if @PL_files