File Coverage

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