Schema/sah/nondefhash_example.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 6 / 6 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Schema/sah/defhash_example.pm ↑ Summary Schema/sah/nschema.pm »
1 package Sah::Schema::sah::nondefhash_example;
2  
3 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4 1 our $DATE = '2021-07-23'; # DATE
5 1 our $DIST = 'Sah-Schemas-Sah'; # DIST
6 1 our $VERSION = '0.9.50.0'; # VERSION
7  
8 # incomplete
9  
10 1 our $schema = [any => {
11 of => [
12 # anything that's not a hash
13 ['str', {}],
14 ['array', {}],
15 ['code', {}],
16 ['obj', {}],
17 ],
18 }];
19  
20 1 1;
21 # ABSTRACT: Non-defhash example
22  
23 __END__
« Schema/sah/defhash_example.pm ↑ Summary Schema/sah/nschema.pm »