perlrdf/Command/Commands.pm

filter: Statementstmt 78.7% 26 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 1 / 1 totaltotal 81.4% 35 / 43 CC 1 SCAR 1.1
CC
1
Cov
79%
sort_commands
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« perlrdf.pm ↑ Summary perlrdf/Command/MakeStore.pm »
1 package App::perlrdf::Command::Commands;
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::Commands::AUTHORITY = 'cpan:TOBYINK';
10 1 $App::perlrdf::Command::Commands::VERSION = '0.006';
11 }
12  
13 1 ▶use App::perlrdf -command;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 require App::Cmd::Command::commands;
17 1 our @ISA;
18 1 unshift @ISA, 'App::Cmd::Command::commands';
19  
20 1 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 abstract => q[list installed perlrdf commands],
22 1 };
23  
24 sub sort_commands
25 0 ▶{
Subroutine sort_commands: not called CC=1 SCAR=6.9
Pod documented
26 0 my ($self, @commands) = @_;
27 0 my $float = qr/^(?:help|commands|aliases|about)$/;
28 0 my @head = sort grep { $_ =~ $float } @commands;
29 0 my @tail = sort grep { $_ !~ $float } @commands;
30 0 return (\@head, \@tail);
31 }
32 1 1;
« perlrdf.pm ↑ Summary perlrdf/Command/MakeStore.pm »