Perinci/Sub/XCompletion/unix_uid.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.7
CC
1
Cov
82%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Perinci/Sub/XCompletion/unix_group_or_gid.pm ↑ Summary Perinci/Sub/XCompletion/unix_user.pm »
1 package Perinci::Sub::XCompletion::unix_uid;
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 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 our $DATE = '2024-11-15'; # DATE
9 our $DIST = 'Sah-SchemaBundle-Unix'; # DIST
10 our $VERSION = '0.022'; # VERSION
11  
12 0 ▶use Complete::Unix qw(complete_uid);
Subroutine BEGIN: called CC=1 SCAR=2.6
13  
14 our %SPEC;
15  
16 $SPEC{gen_completion} = {
17 v => 1.1,
18 };
19 sub gen_completion {
20 my %fargs = @_;
21 sub {
22 my %cargs = @_;
23 complete_uid(%cargs, %fargs);
24 };
25 }
26  
27 1;
28 # ABSTRACT: Generate completion for Unix UIDs
29  
30 __END__
« Perinci/Sub/XCompletion/unix_group_or_gid.pm ↑ Summary Perinci/Sub/XCompletion/unix_user.pm »