MergeVelocity/Types.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MergeVelocity/Repository/Statistics.pm ↑ Summary
1 package GitHub::MergeVelocity::Types;
2 3 our $VERSION = '0.000008';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use DateTime::Format::ISO8601;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Type::Library -base, -declare => ('Datetime');
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Type::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Types::Standard -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 class_type Datetime, { class => "DateTime" };
12  
13 coerce Datetime, from Str,
14 113 ▶ via { DateTime::Format::ISO8601->parse_datetime($_) };
Subroutine __ANON__: called CC=1 SCAR=0.0
15 3 1;
16  
17 =pod
18  
19 =encoding UTF-8
20  
21 =head1 NAME
22  
23 GitHub::MergeVelocity::Types - Custom types for use by GitHub::MergeVelocity modules
24  
25 =head1 VERSION
26  
27 version 0.000008
28  
29 =head1 AUTHOR
30  
31 Olaf Alders <olaf@wundercounter.com>
32  
33 =head1 COPYRIGHT AND LICENSE
34  
35 This software is copyright (c) 2015 by Olaf Alders.
36  
37 This is free software; you can redistribute it and/or modify it under
38 the same terms as the Perl 5 programming language system itself.
39  
40 =cut
41  
42 __END__
43  
44 # ABSTRACT: Custom types for use by GitHub::MergeVelocity modules
« MergeVelocity/Repository/Statistics.pm ↑ Summary