Minilla/Release/DistTest.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 52.0% 13 / 25 CC 3 SCAR 18.7
CC
3
Cov
50%
run
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« Minilla/Util.pm ↑ Summary Minilla/CLI/Dist.pm »
1 package Minilla::Release::DistTest;
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 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod undocumented
7 0 my ($self, $project, $opts) = @_;
8  
9 0 ▶ $opts->{test} or return;
Branch: 1 branch
BranchTrueFalseTotal
$opts->{"test"} or return 0 0 0
10  
11 0 local $ENV{RELEASE_TESTING} = 1;
12 0 my $work_dir = $project->work_dir();
13 0 ▶ if ($work_dir->dist_test) {
Branch: 1 branch
BranchTrueFalseTotal
if ($work_dir->dist_test) 0 0 0
14 # Failed.
15 0 exit 1;
16 }
17 }
18  
19 1 1;
20  
« Minilla/Util.pm ↑ Summary Minilla/CLI/Dist.pm »