File Coverage

blib/lib/DateTime/Format/ISO8601/Types.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 32 32 100.0


line stmt bran cond sub pod time code
1             package DateTime::Format::ISO8601::Types;
2              
3 8     8   66 use strict;
  8         27  
  8         290  
4 8     8   47 use warnings;
  8         21  
  8         281  
5 8     8   47 use namespace::autoclean;
  8         17  
  8         80  
6              
7             our $VERSION = '0.16';
8              
9 8     8   849 use parent 'Specio::Exporter';
  8         17  
  8         46  
10              
11 8     8   467 use DateTime;
  8         21  
  8         196  
12 8     8   41 use Specio 0.18;
  8         270  
  8         240  
13 8     8   52 use Specio::Declare;
  8         19  
  8         72  
14 8     8   2180 use Specio::Library::Builtins -reexport;
  8         22  
  8         79  
15              
16             declare(
17             'CutOffYear',
18             parent => t('Int'),
19             inline => sub {
20             shift;
21             my $value = shift;
22             return "$value >= 0 && $value <= 99",;
23             },
24             );
25              
26             object_isa_type(
27             'DateTime',
28             class => 'DateTime',
29             );
30              
31             object_can_type(
32             'DateTimeIsh',
33             methods => ['utc_rd_values'],
34             );
35              
36             1;
37              
38             # ABSTRACT: Types used for parameter checking in DateTime
39              
40             __END__
41              
42             =pod
43              
44             =encoding UTF-8
45              
46             =head1 NAME
47              
48             DateTime::Format::ISO8601::Types - Types used for parameter checking in DateTime
49              
50             =head1 VERSION
51              
52             version 0.16
53              
54             =head1 DESCRIPTION
55              
56             This module has no user-facing parts.
57              
58             =for Pod::Coverage .*
59              
60             =head1 SUPPORT
61              
62             Bugs may be submitted at L<https://github.com/houseabsolute/DateTime-Format-ISO8601/issues>.
63              
64             I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>.
65              
66             =head1 SOURCE
67              
68             The source code repository for DateTime-Format-ISO8601 can be found at L<https://github.com/houseabsolute/DateTime-Format-ISO8601>.
69              
70             =head1 AUTHORS
71              
72             =over 4
73              
74             =item *
75              
76             Joshua Hoblitt <josh@hoblitt.com>
77              
78             =item *
79              
80             Dave Rolsky <autarch@urth.org>
81              
82             =back
83              
84             =head1 COPYRIGHT AND LICENSE
85              
86             This software is copyright (c) 2021 by Joshua Hoblitt.
87              
88             This is free software; you can redistribute it and/or modify it under
89             the same terms as the Perl 5 programming language system itself.
90              
91             The full text of the license can be found in the
92             F<LICENSE> file included with this distribution.
93              
94             =cut