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

filter: Statementstmt 62.9% 17 / 27 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 60.5% 23 / 38 CC 4 SCAR 22.5
CC
4
Cov
55%
execute
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 9.4
« blib/lib/Pinto/Migrator.pm ↑ Summary blib/lib/Pinto/Remote/Action/Install.pm »
1 # ABSTRACT: show some gratitude
2  
3 package App::Pinto::Command::thanks;
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 Path::Class qw(dir);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Pod::Usage qw(pod2usage);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use base qw(App::Pinto::Command);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 #-------------------------------------------------------------------------------
14  
15 1 our $VERSION = '0.14'; # VERSION
16  
17 #-------------------------------------------------------------------------------
18  
19 0 ▶sub execute {
Subroutine execute: not called CC=4 SCAR=30.0
Pod documented
20 0 my ( $self, $opts, $args ) = @_;
21  
22 0 my $path;
23 0 for my $dir (@INC) {
24 0 my $maybe = dir($dir)->file(qw(Pinto Manual Thanks.pod));
25 0 ▶ do { $path = $maybe->stringify; last } if -f $maybe;
Branch: 1 branch
BranchTrueFalseTotal
if (-f $maybe) 0 0 0
26 }
27  
28 0 ▶ die "Could not find the Thanks pod.\n" if not $path;
Branch: 1 branch
BranchTrueFalseTotal
unless $path 0 0 0
29  
30 0 pod2usage(
31 -verbose => 99,
32 -sections => 'THANK YOU',
33 -input => $path,
34 -exitval => 0,
35 );
36  
37 0 return 1;
38 }
39  
40 #-------------------------------------------------------------------------------
41 1 1;
42  
43 __END__
« blib/lib/Pinto/Migrator.pm ↑ Summary blib/lib/Pinto/Remote/Action/Install.pm »