File Coverage

blib/lib/Data/Sah/Type/float.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1              
2             use Data::Sah::Util::Role 'has_clause';
3 4     4   2215 use Role::Tiny;
  4         10  
  4         211  
4 4     4   22 use Role::Tiny::With;
  4         47  
  4         23  
5 4     4   505  
  4         8  
  4         695  
6             with 'Data::Sah::Type::num';
7              
8             has_clause 'is_nan',
9             v => 2,
10             tags => ['constraint'],
11             schema => ['bool', {}],
12             allow_expr => 1,
13             allow_multi => 0,
14             ;
15              
16             has_clause 'is_inf',
17             v => 2,
18             tags => ['constraint'],
19             schema => ['bool', {}],
20             allow_expr => 1,
21             allow_multi => 1,
22             ;
23              
24             has_clause 'is_pos_inf',
25             v => 2,
26             tags => ['constraint'],
27             schema => ['bool', {}],
28             allow_expr => 1,
29             allow_multi => 1,
30             ;
31              
32             has_clause 'is_neg_inf',
33             v => 2,
34             tags => ['constraint'],
35             schema => ['bool', {}],
36             allow_expr => 1,
37             allow_multi => 1,
38             ;
39              
40             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
41             our $DATE = '2022-09-30'; # DATE
42             our $DIST = 'Data-Sah'; # DIST
43             our $VERSION = '0.913'; # VERSION
44              
45             1;
46             # ABSTRACT: float type
47              
48              
49             =pod
50              
51             =encoding UTF-8
52              
53             =head1 NAME
54              
55             Data::Sah::Type::float - float type
56              
57             =head1 VERSION
58              
59             This document describes version 0.913 of Data::Sah::Type::float (from Perl distribution Data-Sah), released on 2022-09-30.
60              
61             =for Pod::Coverage ^(clause_.+|clausemeta_.+)$
62              
63             =head1 HOMEPAGE
64              
65             Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah>.
66              
67             =head1 SOURCE
68              
69             Source repository is at L<https://github.com/perlancar/perl-Data-Sah>.
70              
71             =head1 AUTHOR
72              
73             perlancar <perlancar@cpan.org>
74              
75             =head1 CONTRIBUTING
76              
77              
78             To contribute, you can send patches by email/via RT, or send pull requests on
79             GitHub.
80              
81             Most of the time, you don't need to build the distribution yourself. You can
82             simply modify the code, then test via:
83              
84             % prove -l
85              
86             If you want to build the distribution (e.g. to try to install it locally on your
87             system), you can install L<Dist::Zilla>,
88             L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
89             L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
90             Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
91             that are considered a bug and can be reported to me.
92              
93             =head1 COPYRIGHT AND LICENSE
94              
95             This software is copyright (c) 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012 by perlancar <perlancar@cpan.org>.
96              
97             This is free software; you can redistribute it and/or modify it under
98             the same terms as the Perl 5 programming language system itself.
99              
100             =head1 BUGS
101              
102             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah>
103              
104             When submitting a bug or request, please include a test-file or a
105             patch to an existing test-file that illustrates the bug or desired
106             feature.
107              
108             =cut