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         43  
  8         392  
4 8     8   51 use warnings;
  8         41  
  8         577  
5 8     8   46 use namespace::autoclean;
  8         17  
  8         86  
6              
7             our $VERSION = '0.19';
8              
9 8     8   849 use parent 'Specio::Exporter';
  8         17  
  8         47  
10              
11 8     8   519 use DateTime;
  8         16  
  8         224  
12 8     8   36 use Specio 0.18;
  8         219  
  8         461  
13 8     8   81 use Specio::Declare;
  8         23  
  8         98  
14 8     8   1924 use Specio::Library::Builtins -reexport;
  8         14  
  8         133  
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.19
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             =head1 SOURCE
65              
66             The source code repository for DateTime-Format-ISO8601 can be found at L<https://github.com/houseabsolute/DateTime-Format-ISO8601>.
67              
68             =head1 AUTHORS
69              
70             =over 4
71              
72             =item *
73              
74             Joshua Hoblitt <josh@hoblitt.com>
75              
76             =item *
77              
78             Dave Rolsky <autarch@urth.org>
79              
80             =back
81              
82             =head1 COPYRIGHT AND LICENSE
83              
84             This software is copyright (c) 2026 by Joshua Hoblitt.
85              
86             This is free software; you can redistribute it and/or modify it under
87             the same terms as the Perl 5 programming language system itself.
88              
89             The full text of the license can be found in the
90             F<LICENSE> file included with this distribution.
91              
92             =cut