blib/lib/Tapper/CLI/DbDeploy.pm

filter: Statementstmt 68.1% 15 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 66.6% 2 / 3 totaltotal 61.7% 21 / 34 CC 2 SCAR 9.2
CC
2
Cov
62%
execute_command
6.0
opt_spec
2.0
global_opt_spec
2.0
CRAP 2.5
« blib/lib/Tapper/CLI/API.pm ↑ Summary bin/tapper »
1 package Tapper::CLI::DbDeploy;
2 6 our $AUTHORITY = 'cpan:TAPPER';
3 6 $Tapper::CLI::DbDeploy::VERSION = '5.0.8';
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use Tapper::Model 'model';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 6 ▶use parent 'App::Cmd';
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 0 ▶sub global_opt_spec {
Subroutine global_opt_spec: not called CC=1 SCAR=6.9
Pod documented
21 return (
22 0 [ 'l' => "Prepend ./lib/ to module search path \@INC" ],
23 );
24 }
25  
26  
27 sub execute_command
28 0 ▶{
Subroutine execute_command: not called CC=2 SCAR=17.9
Pod documented
29 0 my ($cmd, $opt, $args) = @_;
30  
31 0 ▶ if ($cmd->global_options->{l}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($cmd->global_options->{"l"}) 0 0 0
32 0 eval "use lib './lib/'"; ## no critic
33 }
34  
35 0 App::Cmd::execute_command(@_);
36 }
37  
38 # sub validate_args
39 # {
40 # my ( $self, $opt, $args ) = @_;
41  
42 # die $self->_usage_text if $opt->{help};
43 # use Data::Dumper;
44 # $self->validate( $opt, $args );
45 # }
46  
47 6 1;
48  
49 __END__
« blib/lib/Tapper/CLI/API.pm ↑ Summary bin/tapper »