Minilla/CLI/Install.pm

filter: Statementstmt 59.2% 16 / 27 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 55.2% 21 / 38 CC 3 SCAR 16.3
CC
3
Cov
52%
run
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« Minilla/ModuleMaker/ExtUtilsMakeMaker.pm ↑ Summary Minilla/CLI/Help.pm »
1 package Minilla::CLI::Install;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Minilla::WorkDir;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Minilla::Util qw(cmd parse_options);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod undocumented
10 0 my ($self, @args) = @_;
11  
12 0 my $test = 1;
13 0 parse_options(
14 \@args,
15 'test!' => \$test,
16 );
17  
18 0 my $project = Minilla::Project->new();
19 0 my $work_dir = $project->work_dir();
20  
21 0 ▶ if ($test) {
Branch: 1 branch
BranchTrueFalseTotal
if ($test) 0 0 0
22 0 local $ENV{RELEASE_TESTING} = 1;
23 0 $work_dir->dist_test();
24 }
25 0 my $tar = $work_dir->dist();
26  
27 0 cmd(
28 'cpanm',
29 '--notest',
30 $tar
31 );
32 0 ▶ unlink($tar) unless Minilla->debug;
Branch: 1 branch
BranchTrueFalseTotal
unless "Minilla"->debug 0 0 0
33 }
34  
35 1 1;
36 __END__
« Minilla/ModuleMaker/ExtUtilsMakeMaker.pm ↑ Summary Minilla/CLI/Help.pm »