blib/lib/BioSAILs/Utils/Traits.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package BioSAILs::Utils::Traits;
2  
3 use MooseX::Types -declare => [qw( ArrayRefOfStrs )];
4 use MooseX::Types::Moose qw( ArrayRef Str );
5  
6 =head1 BioSAILs:Utils::Traits
7  
8 =head2 Utils
9  
10 =cut
11  
12 =head3 ArrayRefOfStrs
13  
14 Coerce a string to a splitting by ',' and into an array
15  
16 =cut
17  
18 subtype ArrayRefOfStrs, as ArrayRef [Str];
19  
20 coerce ArrayRefOfStrs, from Str, via { [ split( ',', $_ ) ] };
21  
22 1;