File Coverage

blib/lib/Minilla/Profile/ModuleBuildTiny.pm
Criterion Covered Total %
statement 33 41 80.4
branch n/a
condition n/a
subroutine 11 12 91.6
pod 0 1 0.0
total 44 54 81.4


line stmt bran cond sub pod time code
1             package Minilla::Profile::ModuleBuildTiny;
2 1     1   937 use strict;
  1         3  
  1         30  
3 1     1   5 use warnings;
  1         2  
  1         23  
4 1     1   5 use utf8;
  1         2  
  1         8  
5              
6 1     1   28 use parent qw(Minilla::Profile::Base);
  1         2  
  1         7  
7              
8 1     1   72 use File::Spec::Functions qw(catfile);
  1         3  
  1         57  
9 1     1   8 use File::Path qw(mkpath);
  1         3  
  1         51  
10 1     1   8 use File::Basename qw(dirname);
  1         2  
  1         49  
11 1     1   7 use CPAN::Meta;
  1         2  
  1         34  
12 1     1   6 use Data::Section::Simple qw(get_data_section);
  1         3  
  1         52  
13 1     1   6 use File::pushd;
  1         2  
  1         46  
14              
15 1     1   6 use Minilla::License::Perl_5;
  1         3  
  1         162  
16              
17             sub generate {
18 0     0 0   my $self = shift;
19              
20 0           $self->render('Module.pm', catfile('lib', $self->path));
21              
22 0           $self->render('Changes');
23 0           $self->render('t/00_compile.t');
24 0           $self->render('github_actions_test.yml', catfile('.github', 'workflows', 'test.yml'));
25              
26 0           $self->render('.gitignore');
27 0           $self->write_file('LICENSE', Minilla::License::Perl_5->new(
28             holder => sprintf('%s <%s>', $self->author, $self->email)
29             )->fulltext);
30              
31 0           $self->render('cpanfile');
32             }
33              
34             1;
35             __DATA__