blib/lib/App/Pinto/Command/rename.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 59.2% 16 / 27 CC 2 SCAR 10.4
CC
2
Cov
55%
validate_args
6.0
command_names
2.0
BEGIN
1.0
CRAP 2.8
« blib/lib/App/Pinto/Command/new.pm ↑ Summary blib/lib/Pinto/Locker.pm »
1 # ABSTRACT: change the name of a stack
2  
3 package App::Pinto::Command::rename;
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #-----------------------------------------------------------------------------
9  
10 1 ▶use base 'App::Pinto::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 #------------------------------------------------------------------------------
13  
14 1 our $VERSION = '0.14'; # VERSION
15  
16 #------------------------------------------------------------------------------
17  
18 0 ▶sub command_names { return qw(rename mv) }
Subroutine command_names: not called CC=1 SCAR=6.9
Pod documented
19  
20 #------------------------------------------------------------------------------
21  
22 0 ▶sub validate_args {
Subroutine validate_args: not called CC=2 SCAR=17.9
Pod documented
23 0 my ( $self, $opts, $args ) = @_;
24  
25 $self->usage_error('Must specify STACK and TO_STACK')
26 0 ▶ if @{$args} != 2;
Branch: 1 branch
BranchTrueFalseTotal
if @{$args;} != 2 0 0 0
27  
28 0 $opts->{stack} = $args->[0];
29 0 $opts->{to_stack} = $args->[1];
30  
31 0 return 1;
32 }
33  
34 #------------------------------------------------------------------------------
35 1 1;
36  
37 __END__
« blib/lib/App/Pinto/Command/new.pm ↑ Summary blib/lib/Pinto/Locker.pm »