File Coverage

blib/lib/Data/Sah/Type/obj.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 2     2   1006  
  2         4  
  2         79  
4             use Data::Sah::Util::Role 'has_clause';
5 2     2   385 use Role::Tiny;
  2         49  
  2         113  
6 2     2   10 use Role::Tiny::With;
  2         4  
  2         12  
7 2     2   262  
  2         4  
  2         248  
8             with 'Data::Sah::Type::BaseType';
9              
10             has_clause 'can',
11             v => 2,
12             tags => ['constraint'],
13             schema => ['str', {req => 1}], # XXX perl_method_name
14             allow_expr => 1,
15             ;
16             has_clause 'isa',
17             v => 2,
18             tags => ['constraint'],
19             schema => ['str', {req => 1}], # XXX perl_class_name
20             allow_expr => 1,
21             ;
22              
23             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
24             our $DATE = '2022-09-30'; # DATE
25             our $DIST = 'Data-Sah'; # DIST
26             our $VERSION = '0.913'; # VERSION
27              
28             1;
29             # ABSTRACT: obj type
30              
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             Data::Sah::Type::obj - obj type
39              
40             =head1 VERSION
41              
42             This document describes version 0.913 of Data::Sah::Type::obj (from Perl distribution Data-Sah), released on 2022-09-30.
43              
44             =for Pod::Coverage ^(clause_.+|clausemeta_.+)$
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