Minilla/CLI/Prepare.pm

filter: Statementstmt 71.7% 28 / 39 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 0.0% 0 / 1 totaltotal 63.7% 37 / 58 CC 5 SCAR 24.3
CC
5
Cov
60%
run
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.4
« Minilla/Release/RunHooks.pm ↑ Summary Minilla/ReleaseTest.pm »
1 package Minilla::CLI::Prepare;
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::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Minilla::Project;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Minilla::Release::BumpVersion;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Minilla::Release::CheckChanges;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Minilla::Release::RegenerateFiles;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Minilla::Release::RewriteChanges;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub run {
Subroutine run: not called CC=5 SCAR=34.0
Pod undocumented
14 0 my ($self, @args) = @_;
15  
16 0 my $version = shift @args;
17 0 ▶ errorf("Too many arguments for prepare\n") if @args;
Branch: 1 branch
BranchTrueFalseTotal
if @args 0 0 0
18  
19 0 my $project = Minilla::Project->new();
20 0 ▶ errorf("Project validation failed.\n") unless $project->validate();
Branch: 1 branch
BranchTrueFalseTotal
unless $project->validate 0 0 0
21  
22 0 my $opts = {
23 version => $version,
24 dry_run => 0,
25 };
26  
27 0 Minilla::Release::BumpVersion->init();
28 0 Minilla::Release::BumpVersion->run($project, $opts);
29 0 ▶ Minilla::Release::CheckChanges->run($project, $opts) if $project->manage_changes;
Branch: 1 branch
BranchTrueFalseTotal
if $project->manage_changes 0 0 0
30 0 Minilla::Release::RegenerateFiles->run($project, $opts);
31 0 ▶ Minilla::Release::RewriteChanges->run($project, $opts) if $project->manage_changes;
Branch: 1 branch
BranchTrueFalseTotal
if $project->manage_changes 0 0 0
32 }
33  
34 1 1;
35 __END__
« Minilla/Release/RunHooks.pm ↑ Summary Minilla/ReleaseTest.pm »