File Coverage

blib/lib/Data/Sah/Compiler/human/TH/undef.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 2 0.0
total 25 27 92.5


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