blib/lib/Pinto/Action/Clean.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 64.0% 16 / 25 CC 2 SCAR 11.0
CC
2
Cov
65%
execute
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/App/Pinto/Command/help.pm ↑ Summary blib/lib/Pinto/PrerequisiteWalker.pm »
1 # ABSTRACT: Remove orphaned archives
2  
3 package Pinto::Action::Clean;
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use MooseX::MarkAsMethods ( autoclean => 1 );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #------------------------------------------------------------------------------
10  
11 1 our $VERSION = '0.14'; # VERSION
12  
13 #------------------------------------------------------------------------------
14  
15 1 extends qw( Pinto::Action );
16  
17 #------------------------------------------------------------------------------
18  
19 0 ▶sub execute {
Subroutine execute: not called CC=2 SCAR=17.9
Pod undocumented
20 0 my ($self) = @_;
21  
22 0 $self->repo->optimize_database;
23  
24 0 my $did_delete = $self->repo->clean_files;
25  
26 0 ▶ $self->result->changed if $did_delete;
Branch: 1 branch
BranchTrueFalseTotal
if $did_delete 0 0 0
27  
28 0 return $self->result;
29 }
30  
31 #------------------------------------------------------------------------------
32  
33 1 __PACKAGE__->meta->make_immutable;
34  
35 #-----------------------------------------------------------------------------
36 1 1;
37  
38 __END__
« blib/lib/App/Pinto/Command/help.pm ↑ Summary blib/lib/Pinto/PrerequisiteWalker.pm »