App/lcpan/Cmd/author.pm

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 88.8% 24 / 27 CC 1 SCAR 1.8
CC
1
Cov
90%
handle_cmd
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« App/lcpan/Cmd/mentions_by_script.pm ↑ Summary App/lcpan/Cmd/dist.pm »
1 package App::lcpan::Cmd::author;
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  
7 1 ▶use Hash::Subset 'hash_subset_without';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 require App::lcpan;
9  
10 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
11 1 our $DATE = '2023-09-26'; # DATE
12 1 our $DIST = 'App-lcpan'; # DIST
13 1 our $VERSION = '1.074'; # VERSION
14  
15 1 our %SPEC;
16  
17 $SPEC{handle_cmd} = {
18 1 v => 1.1,
19 summary => 'Show a single author',
20 args => {
21 %App::lcpan::common_args,
22 %App::lcpan::author_args,
23 },
24 };
25 0 ▶sub handle_cmd {
Subroutine handle_cmd: not called CC=1 SCAR=6.9
Pod documented
26 0 my %args = @_;
27  
28 App::lcpan::authors(
29 hash_subset_without(\%args, ['author']),
30 0 query => [$args{author}],
31 query_type => 'exact-cpanid',
32 detail => 1,
33 );
34 }
35  
36 1 1;
37 # ABSTRACT: Show a single author
38  
39 __END__
« App/lcpan/Cmd/mentions_by_script.pm ↑ Summary App/lcpan/Cmd/dist.pm »