Sah/SchemaR/uuid/hexdigit.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 8 / 8 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Sah/SchemaBundle/UUID.pm ↑ Summary
1 ## no critic: TestingAndDebugging::RequireStrict
2 package Sah::SchemaR::uuid::hexdigit;
3  
4 1 our $DATE = '2026-04-07'; # DATE
5 1 our $VERSION = '0.001'; # VERSION
6  
7 1 our $rschema = do{my$var={base=>"str",clsets_after_base=>[{examples=>[{summary=>"Not a string",valid=>0,value=>{}},{summary=>"Empty string",valid=>0,value=>""},{valid=>1,value=>"dad2787e-4c84-4aac-917f-caf9a822b0e9"},{valid=>1,validated_value=>"dad2787e-4c84-4aac-917f-caf9a822b0e9",value=>"DAD2787e-4c844aac917fcaf9a822b0e9"},{"Too short"=>undef,valid=>0,value=>"dad2787e-4c84-4aac-917f-caf9a822b0e"},{"Too long"=>undef,valid=>0,value=>"dad2787e-4c84-4aac-917f-caf9a822b0e91"},{"Invalid digit"=>undef,valid=>0,value=>"dad2787e-4c84-4aac-917f-caf9a822b0eg"}],match=>qr(\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\Z)i,prefilters=>["UUID::normalize_hexdigit_uuid"],summary=>"UUID/GUID in the form of hexdigit sequence"}],clsets_after_type=>['$var->{clsets_after_base}[0]'],"clsets_after_type.alt.merge.merged"=>['$var->{clsets_after_base}[0]'],resolve_path=>["str"],type=>"str",v=>2};$var->{clsets_after_type}[0]=$var->{clsets_after_base}[0];$var->{"clsets_after_type.alt.merge.merged"}[0]=$var->{clsets_after_base}[0];$var};
8  
9 1 1;
10 # ABSTRACT: UUID/GUID in the form of hexdigit sequence
11  
12 __END__
« Sah/SchemaBundle/UUID.pm ↑ Summary