Sah/SchemaR/unix/uid/exists.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 10 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Sah/SchemaR/unix/uid.pm ↑ Summary Sah/SchemaR/unix/username.pm »
1 ## no critic: TestingAndDebugging::RequireStrict
2 package Sah::SchemaR::unix::uid::exists;
3  
4 1 our $DATE = '2024-11-15'; # DATE
5 1 our $VERSION = '0.022'; # VERSION
6  
7 1 our $rschema = do{my$var={base=>"unix::uid",clsets_after_base=>[{description=>"\nExisting means having a user name associated with this UID, i.e. `getpwuid`\nreturns a record.\n\nSupport coercion from an existing user name.\n\n",prefilters=>["Unix::convert_unix_user_to_uid","Unix::check_uid_exists"],summary=>"User identifier (UID) that has to exist (has associated username) on the system"}],clsets_after_type=>[{description=>"\nSee also `posint` for integers that start from 1.\n\n",examples=>[{data=>0,valid=>1},{data=>1,valid=>1},{data=>-1,valid=>0}],links=>[{summary=>"Equivalent Type::Tiny constraints: NonNegativeInteger",url=>"pm:Types::XSD"},{summary=>"Equivalent Type::Tiny constraints: PositiveOrZeroInt",url=>"pm:Types::Numbers"}],min=>0,summary=>"Non-negative integer (0, 1, 2, ...)"},{description=>"\nNote that this schema does not check whether the UID exists (has record in the\nuser database e.g. `/etc/passwd`). To do that, use the `unix::uid::exists`\nschema.\n\n",examples=>[{valid=>0,value=>-1},{valid=>1,value=>0},{valid=>1,value=>1}],prefilters=>["Unix::convert_unix_user_to_uid"],summary=>"User identifier (UID)","x.completion"=>["unix_user_or_uid"]},'$var->{clsets_after_base}[0]'],"clsets_after_type.alt.merge.merged"=>['$var->{clsets_after_type}[0]','$var->{clsets_after_type}[1]','$var->{clsets_after_base}[0]'],resolve_path=>["int","uint","unix::uid"],type=>"int",v=>2};$var->{clsets_after_type}[2]=$var->{clsets_after_base}[0];$var->{"clsets_after_type.alt.merge.merged"}[0]=$var->{clsets_after_type}[0];$var->{"clsets_after_type.alt.merge.merged"}[1]=$var->{clsets_after_type}[1];$var->{"clsets_after_type.alt.merge.merged"}[2]=$var->{clsets_after_base}[0];$var};
8  
9 1 1;
10 # ABSTRACT: User identifier (UID) that has to exist (has associated username) on the system
11  
12 __END__
« Sah/SchemaR/unix/uid.pm ↑ Summary Sah/SchemaR/unix/username.pm »