perlrdf/Command/About.pm

filter: Statementstmt 79.4% 27 / 34 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 10 / 12 Podpod 100% 3 / 3 totaltotal 75.4% 40 / 53 CC 4 SCAR 18.1
CC
4
Cov
71%
execute
20.0
opt_spec
2.0
BEGIN
1.0
CRAP 6.1
« perlrdf/FileSpec/OutputFile.pm ↑ Summary perlrdf/Command/Aliases.pm »
1 package App::perlrdf::Command::About;
2  
3 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 $App::perlrdf::Command::About::AUTHORITY = 'cpan:TOBYINK';
10 1 $App::perlrdf::Command::About::VERSION = '0.006';
11 }
12  
13 1 ▶use App::perlrdf -command;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 abstract => q[list which perlrdf plugins are installed],
19 usage_desc => q[%c about],
20 1 };
21  
22 1 ▶use constant FORMAT_STR => "%-36s%10s %s\n";
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 sub command_names
25 1 ▶{
Subroutine command_names: called CC=1 SCAR=0.0
Pod documented
26 1 qw(
27 about
28 credits
29 );
30 }
31  
32 sub opt_spec
33 0 ▶{
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod documented
34 0 return;
35 }
36  
37 sub execute
38 0 ▶{
Subroutine execute: not called CC=4 SCAR=30.0
Pod documented
39 0 my ($self, $opt, $args) = @_;
40
41 0 my $auth = $self->app->can('AUTHORITY');
42 0 ▶ printf(
Branch: 1 branch
BranchTrueFalseTotal
$auth ? : 0 0 0
43 FORMAT_STR,
44 ref($self->app),
45 $self->app->VERSION,
46 $auth ? $self->app->$auth : '???',
47 );
48
49 0 foreach my $cmd (sort $self->app->command_plugins)
50 {
51 0 my $auth = $cmd->can('AUTHORITY');
52 0 ▶ printf(
Branch: 1 branch
BranchTrueFalseTotal
$auth ? : 0 0 0
53 FORMAT_STR,
54 $cmd,
55 $cmd->VERSION,
56 $auth ? $cmd->$auth : '???',
57 );
58 }
59 }
60  
61 1 1;
« perlrdf/FileSpec/OutputFile.pm ↑ Summary perlrdf/Command/Aliases.pm »