Schema/nonnegint.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
« Schema/negodd.pm ↑ Summary Schema/nonposint.pm »
1 package Sah::Schema::nonnegint;
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 = '2022-10-19'; # DATE
7 1 our $DIST = 'Sah-Schemas-Int'; # DIST
8 1 our $VERSION = '0.077'; # VERSION
9  
10 1 our $schema = [uint => {
11 summary => 'Non-negative integer (0, 1, 2, ...), same as uint',
12 examples => [
13 {data=>0 , valid=>1},
14 {data=>1, valid=>1},
15 {data=>-1, valid=>0},
16 ],
17 links => [
18 {url=>'pm:Types::XSD', summary=>'Semi-equivalent Type::Tiny constraints: NonNegativeInt ('},
19 {url=>'pm:Types::Numbers', summary=>'Equivalent Type::Tiny constraints: PositiveOrZeroInt'},
20 ],
21 }];
22  
23 1 1;
24 # ABSTRACT: Non-negative integer (0, 1, 2, ...), same as uint
25  
26 __END__
« Schema/negodd.pm ↑ Summary Schema/nonposint.pm »