File Coverage

lib/Code/Statistics/MooseTypes.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   6 use strict;
  1         2  
  1         30  
2 1     1   5 use warnings;
  1         2  
  1         65  
3              
4             package Code::Statistics::MooseTypes;
5             $Code::Statistics::MooseTypes::VERSION = '1.190680';
6             # ABSTRACT: provides coercion types for Code::Statistics
7              
8 1     1   6 use Moose::Util::TypeConstraints;
  1         2  
  1         8  
9              
10             subtype 'CS::InputList' => as 'ArrayRef';
11             coerce 'CS::InputList' => from 'Str' => via {
12             my @list = split /;/, $_;
13             return \@list;
14             };
15              
16             1;
17              
18             __END__
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             Code::Statistics::MooseTypes - provides coercion types for Code::Statistics
27              
28             =head1 VERSION
29              
30             version 1.190680
31              
32             =head1 AUTHOR
33              
34             Christian Walde <mithaldu@yahoo.de>
35              
36             =head1 COPYRIGHT AND LICENSE
37              
38              
39             Christian Walde has dedicated the work to the Commons by waiving all of his
40             or her rights to the work worldwide under copyright law and all related or
41             neighboring legal rights he or she had in the work, to the extent allowable by
42             law.
43              
44             Works under CC0 do not require attribution. When citing the work, you should
45             not imply endorsement by the author.
46              
47             =cut