Perinci/Sub/XCompletion/date_dow_num.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 1 / 1 totaltotal 79.3% 23 / 29 CC 1 SCAR 2.9
CC
1
Cov
82%
gen_completion
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« Data/Sah/Coerce/perl/To_int/From_str/tz_offset_strings.pm ↑ Summary Perinci/Sub/XCompletion/date_dow_nums.pm »
1 package Perinci::Sub::XCompletion::date_dow_num;
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(complete_array_elem);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 1 our $DATE = '2023-12-09'; # DATE
11 1 our $DIST = 'Sah-Schemas-Date'; # DIST
12 1 our $VERSION = '0.019'; # VERSION
13  
14 1 our %SPEC;
15  
16 $SPEC{gen_completion} = {
17 1 v => 1.1,
18 };
19 0 ▶sub gen_completion {
Subroutine gen_completion: not called CC=1 SCAR=6.9
Pod documented
20 0 my %fargs = @_;
21  
22 0 ▶ sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 my %cargs = @_;
24  
25 complete_array_elem(
26 array => [
27 1..7,
28 "monday","tuesday","wednesday","thursday","friday","saturday","sunday",
29 ],
30 word => $cargs{word},
31 0 );
32 0 };
33 }
34  
35 1 1;
36 # ABSTRACT: Generate completion for date::dow_num
37  
38 __END__
« Data/Sah/Coerce/perl/To_int/From_str/tz_offset_strings.pm ↑ Summary Perinci/Sub/XCompletion/date_dow_nums.pm »