Schema/uint8.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/uint64.pm ↑ Summary SchemaR/byte.pm »
1 package Sah::Schema::uint8;
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 => '8-bit unsigned integer',
12 min => +0,
13 max => +2**8-1,
14 examples => [
15 {data=> 0, valid=>1},
16 {data=>-1, valid=>0},
17 {data=>1, valid=>1},
18 {data=>255, valid=>1},
19 {data=>256, valid=>0},
20 ],
21 links => [
22 {url=>'pm:Types::CLike', summary=>'Equivalent Type::Tiny constraints: Byte, Octet, UnsignedTinyInt, UInt8, Unsigned8'},
23 {url=>'pm:Types::XSD', summary=>'Equivalent Type::Tiny constraints: UnsignedByte'},
24 ],
25 }];
26  
27 1 1;
28 # ABSTRACT: 8-bit unsigned integer
29  
30 __END__
« Schema/uint64.pm ↑ Summary SchemaR/byte.pm »