blib/lib/Dist/Zilla/Plugin/Acme/MetaSyntactic.pm

filter: Statementstmt 52.1% 12 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 45.1% 14 / 31 CC 2 SCAR 11.0
CC
2
Cov
48%
gather_files
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
↑ Summary
1 package Dist::Zilla::Plugin::Acme::MetaSyntactic;
2  
3 1 our $DATE = '2017-02-04'; # DATE
4 1 our $VERSION = '0.001'; # VERSION
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 with 'Dist::Zilla::Role::FileGatherer';
8 1 with 'Dist::Zilla::Role::PrereqSource';
9  
10 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 0 ▶sub register_prereqs {
Subroutine register_prereqs: not called CC=1 SCAR=0.0
Pod undocumented
13 # performed in gather_files
14 }
15  
16 0 ▶sub gather_files {
Subroutine gather_files: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my ($self) = @_;
18  
19 0 ▶ unless (grep { $_->name eq 't/meta.t' } @{ $self->zilla->files }) {
Branch: 1 branch
BranchTrueFalseTotal
unless (grep {$_->name eq "t/meta.t";} @{$self->zilla->files;}) 0 0 0
20 0 my $content = <<EOF;
21 #!perl
22  
23 0 # This file was automatically generated by ${\( __PACKAGE__ )}.
24  
25 use Test::MetaSyntactic;
26 all_themes_ok();
27 EOF
28 0 my $filename = 'xt/release/meta.t';
29 0 $self->log(["Adding %s ...", $filename]);
30 0 require Dist::Zilla::File::InMemory;
31 0 $self->add_file(
32 Dist::Zilla::File::InMemory->new({
33 name => $filename,
34 content => $content,
35 })
36 );
37 0 $self->zilla->register_prereqs(
38 {
39 type => 'requires',
40 phase => 'test',
41 },
42 'Test::MetaSyntactic' => '0',
43 );
44 }
45 }
46  
47 1 __PACKAGE__->meta->make_immutable;
48 1 1;
49 # ABSTRACT: Plugin to use when building Acme-MetaSyntactic-* theme distribution
50  
51 __END__
↑ Summary