blib/lib/Dist/Zilla/Plugin/DBIO/SetMeta.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
before_build
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Pod/Weaver/PluginBundle/DBIO/Heritage.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/DBIO/PodCheckerTest.pm »
1 package Dist::Zilla::Plugin::DBIO::SetMeta;
2 # ABSTRACT: Set author, copyright_holder, and license on the Dist::Zilla object
3 8 our $VERSION = '0.900007';
4 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 with 'Dist::Zilla::Role::Plugin', 'Dist::Zilla::Role::BeforeBuild';
6  
7  
8 8 has author => (is => 'ro', isa => 'Str', required => 1);
9 8 has holder => (is => 'ro', isa => 'Str', required => 1);
10  
11 3 ▶sub before_build {
Subroutine before_build: called CC=1 SCAR=0.0
Pod undocumented
12 3 my ($self) = @_;
13 3 my $zilla = $self->zilla;
14  
15 3 my %attr = map { $_->name => $_ } $zilla->meta->get_all_attributes;
16  
17 3 $attr{authors}->set_value($zilla, [$self->author]);
18 3 $attr{_copyright_holder}->set_value($zilla, $self->holder);
19 3 $attr{_license_class}->set_value($zilla, 'Perl_5');
20 }
21  
22 8 __PACKAGE__->meta->make_immutable;
23 8 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 __END__
« blib/lib/Pod/Weaver/PluginBundle/DBIO/Heritage.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/DBIO/PodCheckerTest.pm »