CSE/Command/Help.pm

filter: Statementstmt 96.1% 25 / 26 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 91.1% 31 / 34 CC 2 SCAR 2.9
CC
2
Cov
93%
execute
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« CSE/Command.pm ↑ Summary
1 package App::CSE::Command::Help;
2 1 $App::CSE::Command::Help::VERSION = '0.016';
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends qw/App::CSE::Command/;
5  
6 1 ▶use Pod::Text;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Log::Log4perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 my $LOGGER = Log::Log4perl->get_logger();
11  
12 1 ▶sub execute{
Subroutine execute: called CC=2 SCAR=7.0
Pod undocumented
13 1 my ($self) = @_;
14  
15  
16 1 ▶ unless( $self->cse()->interactive() ){
Branch: 1 branch
BranchTrueFalseTotal
if ($self->cse->interactive) { } 0 1 1
17 1 my $output;
18 1 my $p2txt = Pod::Text->new();
19 1 $p2txt->output_string(\$output);
20 1 $p2txt->parse_file(__FILE__);
21 1 $LOGGER->info("This is cse version ".$self->cse()->version());
22 1 $LOGGER->info($output);
23 }else{
24 0 Pod::Usage::pod2usage( -input => __FILE__ , -verbose => 2,
25 -message => 'This is cse version '.$self->cse()->version()
26 );
27 }
28 1 return 1;
29 }
30  
31 1 __PACKAGE__->meta->make_immutable();
32  
33 __END__
« CSE/Command.pm ↑ Summary