Sah/Schema/unix/gid.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Sah/Schema/unix/filename.pm ↑ Summary Sah/Schema/unix/gid/exists.pm »
1 package Sah::Schema::unix::gid;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 1 our $DATE = '2024-11-15'; # DATE
7 1 our $DIST = 'Sah-SchemaBundle-Unix'; # DIST
8 1 our $VERSION = '0.022'; # VERSION
9  
10 1 our $schema = [uint => {
11 summary => 'Group identifier (GID)',
12 description => <<'MARKDOWN',
13  
14 Note that this schema does not check whether the GID exists (has record in the
15 user database e.g. `/etc/group`). To do that, use the `unix::gid::exists`
16 schema.
17  
18 MARKDOWN
19  
20 'prefilters' => ['Unix::convert_unix_group_to_gid'],
21 'x.completion' => ['unix_group_or_gid'],
22 examples => [
23 {value=>-1, valid=>0},
24 {value=>0, valid=>1},
25 {value=>1, valid=>1},
26 ],
27  
28 }];
29  
30 1 1;
31 # ABSTRACT: Group identifier (GID)
32  
33 __END__
« Sah/Schema/unix/filename.pm ↑ Summary Sah/Schema/unix/gid/exists.pm »