File Coverage

blib/lib/Bio/FastParsers/Types.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Bio::FastParsers::Types;
2             # ABSTRACT: Distribution-wide Moose types for Bio::FastParsers
3             $Bio::FastParsers::Types::VERSION = '0.213510';
4 7     7   56 use Moose::Util::TypeConstraints;
  7         17  
  7         73  
5              
6 7     7   15473 use autodie;
  7         17  
  7         99  
7 7     7   39353 use feature qw(say);
  7         47  
  7         787  
8              
9 7     7   54 use Path::Class qw(file);
  7         29  
  7         1096  
10              
11              
12             # subtype for 'file' attributes
13             subtype 'Bio::FastParsers::Types::File'
14             => as 'Path::Class::File'
15             ;
16              
17             # avoid the need for 'isa' unions such as 'Str|Path::Class::File'...
18             # ... and allow delegating to Path::Class::File methods (e.g., remove)
19             coerce 'Bio::FastParsers::Types::File'
20             => from 'Str'
21             => via { file($_) }
22             ;
23              
24              
25 7     7   61 no Moose::Util::TypeConstraints;
  7         17  
  7         48  
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =head1 NAME
33              
34             Bio::FastParsers::Types - Distribution-wide Moose types for Bio::FastParsers
35              
36             =head1 VERSION
37              
38             version 0.213510
39              
40             =head1 DESCRIPTION
41              
42             Nothing to see here.
43              
44             =head1 AUTHOR
45              
46             Denis BAURAIN <denis.baurain@uliege.be>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.
51              
52             This is free software; you can redistribute it and/or modify it under
53             the same terms as the Perl 5 programming language system itself.
54              
55             =cut