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;})) { }
38 1 0 if ($content =~ s/^WriteMakefile/${extra}WriteMakefile/mu) { }
65 1 0 if ($content =~ s/^(my \$build =)/$extra . "\n" . $1;/emu) { }
94 0 2 unless -d 'lib/Alt'
96 6 2 unless -f $_
97 0 2 unless @files
98 0 2 if @files > 1