Branch Coverage

blib/lib/Dist/Zilla/Plugin/Alt.pm
Criterion Covered Total %
branch 10 16 62.5


line true false branch
20 1 1 if (my $file = &first(sub { $_->name eq 'Makefile.PL'; } , @{$self->zilla->files;})) { }
1 0 elsif ($file = &first(sub { $_->name eq 'Build.PL'; } , @{$self->zilla->files;})) { }
48 1 0 if ($content =~ s/^WriteMakefile/${extra}WriteMakefile/mu) { }
75 1 0 if ($content =~ s/^(my \$build =)/$extra . "\n" . $1;/emu) { }
104 0 2 unless -d 'lib/Alt'
106 6 2 unless -f $_
107 0 2 unless @files
108 0 2 if @files > 1