Schema/negint.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/negeven.pm ↑ Summary Schema/negodd.pm »
1 package Sah::Schema::negint;
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 = [int => {
11 summary => 'Negative integer (-1, -2, ...)',
12 max => -1,
13 examples => [
14 {data=>-1, valid=>1},
15 {data=> 0, valid=>0},
16 ],
17 links => [
18 {url=>'pm:Types::XSD', summary=>'Equivalent Type::Tiny constraints: NegativeInteger'},
19 {url=>'pm:Types::Numbers', summary=>'Equivalent Type::Tiny constraints: NegativeInt'},
20 ],
21 }];
22  
23 1 1;
24 # ABSTRACT: Negative integer (-1, -2, ...)
25  
26 __END__
« Schema/negeven.pm ↑ Summary Schema/negodd.pm »