File Coverage

lib/Bio/MLST/Types.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 28 28 100.0


line stmt bran cond sub pod time code
1             package Bio::MLST::Types;
2             # ABSTRACT: Moose types to use for validation.
3             $Bio::MLST::Types::VERSION = '2.1.1706216';
4              
5 17     17   55 use Moose;
  17         22  
  17         74  
6 17     17   68437 use Moose::Util::TypeConstraints;
  17         23  
  17         127  
7 17     17   27398 use Bio::MLST::Validate::Executable;
  17         40  
  17         554  
8 17     17   6073 use Bio::MLST::Validate::File;
  17         34  
  17         605  
9 17     17   6261 use Bio::MLST::Validate::Resource;
  17         37  
  17         1799  
10              
11             subtype 'Bio::MLST::Executable',
12             as 'Str',
13             where { Bio::MLST::Validate::Executable->new()->does_executable_exist($_) };
14              
15             subtype 'Bio::MLST::File',
16             as 'Str',
17             where { Bio::MLST::Validate::File->new()->does_file_exist($_) };
18              
19             subtype 'Bio::MLST::Resource',
20             as 'Str',
21             where { Bio::MLST::Validate::Resource->new()->does_resource_exist($_) };
22              
23 17     17   82 no Moose;
  17         24  
  17         55  
24 17     17   2382 no Moose::Util::TypeConstraints;
  17         16  
  17         141  
25             __PACKAGE__->meta->make_immutable;
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Bio::MLST::Types - Moose types to use for validation.
37              
38             =head1 VERSION
39              
40             version 2.1.1706216
41              
42             =head1 SYNOPSIS
43              
44             Moose types to use for validation.
45              
46             =head1 AUTHOR
47              
48             Andrew J. Page <ap13@sanger.ac.uk>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is Copyright (c) 2012 by Wellcome Trust Sanger Institute.
53              
54             This is free software, licensed under:
55              
56             The GNU General Public License, Version 3, June 2007
57              
58             =cut