XCompletion/dirname.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 1 / 1 totaltotal 81.8% 27 / 33 CC 1 SCAR 2.5
CC
1
Cov
84%
gen_completion
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« XCompletion/comma_sep.pm ↑ Summary XCompletion/filename.pm »
1 package Perinci::Sub::XCompletion::dirname;
2  
3 1 ▶use 5.010001;
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 Complete::Util qw(hashify_answer);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Complete::File qw(complete_dir);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
11 1 our $DATE = '2023-11-18'; # DATE
12 1 our $DIST = 'Perinci-Sub-XCompletion'; # DIST
13 1 our $VERSION = '0.106'; # VERSION
14  
15 1 our %SPEC;
16  
17 $SPEC{gen_completion} = {
18 1 v => 1.1,
19 };
20 0 ▶sub gen_completion {
Subroutine gen_completion: not called CC=1 SCAR=6.9
Pod documented
21 0 my %fargs = @_;
22 0 ▶ sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 my %cargs = @_;
24 0 hashify_answer(
25 complete_dir(%cargs, %fargs),
26 {path_sep => '/'},
27 );
28 0 };
29 }
30  
31 1 1;
32 # ABSTRACT: Generate completion for directory name
33  
34 __END__
« XCompletion/comma_sep.pm ↑ Summary XCompletion/filename.pm »