File Coverage

blib/lib/Data/Sah/Type/int.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


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