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   7 use strict;
  1         2  
  1         41  
2 1     1   6 use warnings;
  1         2  
  1         77  
3              
4             package Code::Statistics::MooseTypes;
5             {
6             $Code::Statistics::MooseTypes::VERSION = '1.112980';
7             }
8              
9             # ABSTRACT: provides coercion types for Code::Statistics
10              
11 1     1   7 use Moose::Util::TypeConstraints;
  1         3  
  1         14  
12              
13             subtype 'CS::InputList' => as 'ArrayRef';
14             coerce 'CS::InputList' => from 'Str' => via {
15             my @list = split /;/, $_;
16             return \@list;
17             };
18              
19             1;
20              
21             __END__
22             =pod
23              
24             =head1 NAME
25              
26             Code::Statistics::MooseTypes - provides coercion types for Code::Statistics
27              
28             =head1 VERSION
29              
30             version 1.112980
31              
32             =head1 AUTHOR
33              
34             Christian Walde <mithaldu@yahoo.de>
35              
36             =head1 COPYRIGHT AND LICENSE
37              
38             This software is Copyright (c) 2010 by Christian Walde.
39              
40             This is free software, licensed under:
41              
42             DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004
43              
44             =cut
45