Schema/int16.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/int128.pm ↑ Summary Schema/int32.pm »
1 package Sah::Schema::int16;
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 => '16-bit signed integer',
12 min => -2**15,
13 max => +2**15-1,
14 examples => [
15 {data=>0 , valid=>1},
16 {data=>65536, valid=>0},
17 ],
18 links => [
19 {url=>'pm:Types::CLike', summary=>'Equivalent Type::Tiny constraints: Short, SmallInt, Int16, Signed16'},
20 {url=>'pm:Types::XSD', summary=>'Equivalent Type::Tiny constraints: Short'},
21 ],
22 }];
23  
24 1 1;
25 # ABSTRACT: 16-bit signed integer
26  
27 __END__
« Schema/int128.pm ↑ Summary Schema/int32.pm »