blib/lib/Dist/Zilla/Role/Stash.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 91.6% 22 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dist/Zilla/File/OnDisk.pm ↑ Summary blib/lib/Dist/Zilla/Role/StubBuild.pm »
1 package Dist::Zilla::Role::Stash 6.040;
2 # ABSTRACT: something that stores options or data for later reference
3  
4 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use Dist::Zilla::Pragmas;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 ▶sub register_component {
Subroutine register_component: called CC=1 SCAR=0.0
Pod undocumented
11 7 my ($class, $name, $arg, $section) = @_;
12  
13 # $self->log_debug([ 'online, %s v%s', $self->meta->name, $version ]);
14 7 my $entry = $class->stash_from_config($name, $arg, $section);
15  
16 7 $section->sequence->assembler->register_stash($name, $entry);
17  
18 7 return;
19 }
20  
21 7 ▶sub stash_from_config {
Subroutine stash_from_config: called CC=1 SCAR=0.0
Pod undocumented
22 7 my ($class, $name, $arg, $section) = @_;
23  
24 7 my $self = $class->new($arg);
25 7 return $self;
26 }
27  
28 5 1;
29  
30 __END__
« blib/lib/Dist/Zilla/File/OnDisk.pm ↑ Summary blib/lib/Dist/Zilla/Role/StubBuild.pm »