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

filter: Statementstmt 66.6% 14 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 2 / 2 totaltotal 60.6% 20 / 33 CC 3 SCAR 16.6
CC
3
Cov
56%
validate_args
12.0
opt_spec
2.0
BEGIN
1.0
CRAP 5.2
« blib/lib/Pinto/Role/Committable.pm ↑ Summary blib/lib/Pinto/Schema/Result/Package.pm »
1 # ABSTRACT: show available stacks
2  
3 package App::Pinto::Command::stacks;
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 1 ▶use Pinto::Util qw(interpolate);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #-----------------------------------------------------------------------------
11  
12 1 ▶use base 'App::Pinto::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 #------------------------------------------------------------------------------
15  
16 1 our $VERSION = '0.14'; # VERSION
17  
18 #------------------------------------------------------------------------------
19  
20 0 ▶sub opt_spec {
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod documented
21 0 my ( $self, $app ) = @_;
22  
23 0 return ( [ 'format=s' => 'Format of the listing (See POD for details)' ], );
24 }
25  
26 #------------------------------------------------------------------------------
27  
28 0 ▶sub validate_args {
Subroutine validate_args: not called CC=3 SCAR=24.8
Pod documented
29 0 my ( $self, $opts, $args ) = @_;
30  
31 $self->usage_error('No arguments are allowed')
32 0 ▶ if @{$args};
Branch: 1 branch
BranchTrueFalseTotal
if @{$args;} 0 0 0
33  
34 $opts->{format} = interpolate( $opts->{format} )
35 0 ▶ if exists $opts->{format};
Branch: 1 branch
BranchTrueFalseTotal
if exists $opts->{"format"} 0 0 0
36  
37 0 return 1;
38 }
39  
40 #------------------------------------------------------------------------------
41 1 1;
42  
43 __END__
« blib/lib/Pinto/Role/Committable.pm ↑ Summary blib/lib/Pinto/Schema/Result/Package.pm »