blib/lib/Tapper/CLI/API.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 63.3% 19 / 30 CC 2 SCAR 9.4
CC
2
Cov
68%
validate_args
6.0
opt_spec
2.0
BEGIN
1.0
CRAP 2.6
« blib/lib/Tapper/CLI/Utils.pm ↑ Summary blib/lib/Tapper/CLI/DbDeploy.pm »
1 package Tapper::CLI::API;
2 2 our $AUTHORITY = 'cpan:TAPPER';
3 2 $Tapper::CLI::API::VERSION = '5.0.8';
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use parent 'App::Cmd';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Tapper::Model 'model';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub opt_spec
11 0 ▶{
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my ( $class, $app ) = @_;
13  
14 return (
15 0 [ 'help' => "This usage screen" ],
16 $class->options($app),
17 );
18 }
19  
20 sub validate_args
21 0 ▶{
Subroutine validate_args: not called CC=2 SCAR=17.9
Pod undocumented
22 0 my ( $self, $opt, $args ) = @_;
23  
24 0 ▶ die $self->_usage_text if $opt->{help};
Branch: 1 branch
BranchTrueFalseTotal
if $opt->{"help"} 0 0 0
25 0 $self->validate( $opt, $args );
26 }
27  
28 2 1;
29  
30 __END__
« blib/lib/Tapper/CLI/Utils.pm ↑ Summary blib/lib/Tapper/CLI/DbDeploy.pm »