Data/Sah/Type/float.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Sah/Type/duration.pm ↑ Summary Data/Sah/Type/int.pm »
1 package Data::Sah::Type::float;
2  
3 7 ▶use Data::Sah::Util::Role 'has_clause';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 with 'Data::Sah::Type::num';
8  
9 7 has_clause 'is_nan',
10 v => 2,
11 tags => ['constraint'],
12 schema => ['bool', {}],
13 allow_expr => 1,
14 allow_multi => 0,
15 ;
16  
17 7 has_clause 'is_inf',
18 v => 2,
19 tags => ['constraint'],
20 schema => ['bool', {}],
21 allow_expr => 1,
22 allow_multi => 1,
23 ;
24  
25 7 has_clause 'is_pos_inf',
26 v => 2,
27 tags => ['constraint'],
28 schema => ['bool', {}],
29 allow_expr => 1,
30 allow_multi => 1,
31 ;
32  
33 7 has_clause 'is_neg_inf',
34 v => 2,
35 tags => ['constraint'],
36 schema => ['bool', {}],
37 allow_expr => 1,
38 allow_multi => 1,
39 ;
40  
41 7 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
42 7 our $DATE = '2024-02-16'; # DATE
43 7 our $DIST = 'Data-Sah'; # DIST
44 7 our $VERSION = '0.917'; # VERSION
45  
46 7 1;
47 # ABSTRACT: float type
48  
49 __END__
« Data/Sah/Type/duration.pm ↑ Summary Data/Sah/Type/int.pm »