lib/Dist/Zilla/Plugin/CSJEWELL/BeforeBuild.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.9% 20 / 26 CC 1 SCAR 1.8
CC
1
Cov
80%
before_build
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Dist/Zilla/Plugin/CSJEWELL/AuthorTest.pm ↑ Summary lib/Dist/Zilla/BeLike/CSJEWELL.pm »
1 package Dist::Zilla::Plugin::CSJEWELL::BeforeBuild;
2  
3 1 ▶use 5.008003;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 with 'Dist::Zilla::Role::BeforeBuild';
7  
8 1 our $VERSION = '0.900';
9 1 $VERSION =~ s/_//sm;
10  
11  
12 0 ▶sub before_build {
Subroutine before_build: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my ($self) = @_;
14  
15 # This has the same effect as
16 # "perl Build.PL && Build manifest && Build distmeta",
17 # only in code.
18 0 my $builder = Module::Build->new_from_context();
19  
20 # Our ACTION_distmeta depends on 'manifest', so runs it.
21 0 $builder->ACTION_distmeta();
22  
23 0 return 1;
24 } ## end sub before_build
25  
26 1 __PACKAGE__->meta()->make_immutable();
27 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 1;
29  
30 __END__
« lib/Dist/Zilla/Plugin/CSJEWELL/AuthorTest.pm ↑ Summary lib/Dist/Zilla/BeLike/CSJEWELL.pm »