Branch Coverage

blib/lib/Dist/Zilla/Dist/Builder.pm
Criterion Covered Total %
branch 57 140 40.7


line true false branch
59 176 0 unless ($self->plugin_named(":InstallModules"))
68 121 290 if m[\Alib/]u and /\.(pm|pod)$/u
76 176 0 unless ($self->plugin_named(":IncModules"))
85 5 33 if m[\Ainc/]u and /\.pm$/u
93 176 0 unless ($self->plugin_named(":TestFiles"))
105 176 0 unless ($self->plugin_named(":ExtraTestFiles"))
117 176 0 unless ($self->plugin_named(":ExecFiles"))
134 176 0 unless ($self->plugin_named(":PerlExecFiles"))
143 2 1 unless $_->name =~ /\.pl$/u
153 176 0 unless ($self->plugin_named(":ShareFiles"))
163 1 0 if ($map->{'dist'})
167 0 1 if (my $mod_map = $map->{'module'})
180 176 0 unless ($self->plugin_named(":MainModule"))
189 0 0 if $_ eq $self->zilla->main_module->name
197 176 0 unless ($self->plugin_named(":AllFiles"))
209 176 0 unless ($self->plugin_named(":NoFiles"))
236 11 10 unless my $sub_map = $plugin->share_dir_map
238 5 5 if ($sub_map->{'dist'})
240 0 5 if $share_dir_map->{'dist'}
244 5 5 if (my $mod_map = $sub_map->{'module'})
247 0 8 if $share_dir_map->{'module'}{$mod}
285 20 166 if $arg->{'_global_stashes'}
298 4 6 if $_->isa("Config::MVP::Error")
300 6 4 unless &try(sub {
303 1 3 $_->section_name =~ m[^@(?!.*/)]u ? :
341 0 151 if $self->isa("Dist::Zilla::Dist::Minter")
344 0 151 if $self->built_in
420 3 0 if $self->built_in and !$root || $self->built_in eq $root
423 0 21 if $self->built_in
457 4 27 $self->is_trial && !($self->version =~ /_/u) ? :
499 1 0 if defined $file
502 22 0 eval {
530 0 0 unless ($seen_dir{$in}++)
577 1 145 unless -d $build_root
581 0 146 unless -d $build_root
584 0 146 unless $ok
589 0 146 if ($^O eq "MSWin32" and -d $build_root)
593 0 0 if -d $build_root
614 0 21 unless my(@releasers) = @{$self->plugins_with("-Releaser");}
644 0 0 if ($dry_run) { }
668 1 0 unless -d $build_root
677 1 0 if ($os_has_symlinks)
680 0 1 if (-l $previous)
681 0 0 unless $previous->remove
684 0 1 if (-l $latest)
685 0 0 unless rename $latest, $previous
688 0 1 unless symlink $target->basename, $latest
726 0 0 $arg->{'install_command'} ? :
730 0 0 if system @cmd
734 0 0 unless ($ok)
740 0 0 if ($arg->{'keep_build_dir'}) { }
745 0 0 if -d $latest
746 0 0 if $latest
770 0 1 unless my(@testers) = @{$self->plugins_with("-TestRunner");}
775 0 0 if ($arg and $arg->{'keep_build_dir'})
782 0 1 if -d $latest
783 1 0 if $latest
803 0 2 unless my(@testers) = @{$self->plugins_with("-TestRunner");}
828 0 0 unless $arg and exists $arg->{'build'} and not $arg->{'build'} or @{$self->plugins_with("-BuildRunner");}
839 0 0 if ($arg and exists $arg->{'build'} and not $arg->{'build'})
840 0 0 if system @$cmd
848 0 0 defined $ENV{'PERL5LIB'} ? :
852 0 0 defined $ENV{'PATH'} ? :
854 0 0 if system @$cmd
858 0 0 if ($ok) { }
861 0 0 if -d $latest
862 0 0 if $latest
877 0 0 unless (-d "blib")
879 0 0 unless @builders
881 0 0 unless -d "blib"