File Coverage

lib/Bio/MLST/Validate/File.pm
Criterion Covered Total %
statement 8 9 88.8
branch 1 2 50.0
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 13 15 86.6


line stmt bran cond sub pod time code
1             package Bio::MLST::Validate::File;
2             # ABSTRACT: Check to see if a file exists. For validation when classes have input files.
3             $Bio::MLST::Validate::File::VERSION = '2.1.1706216';
4              
5 17     17   56 use Moose;
  17         22  
  17         86  
6              
7             sub does_file_exist
8             {
9 47     47 1 83 my($self, $file) = @_;
10 47 50       917 return 1 if(-e $file);
11            
12 0           return 0;
13             }
14              
15 17     17   72840 no Moose;
  17         20  
  17         80  
16             __PACKAGE__->meta->make_immutable;
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Bio::MLST::Validate::File - Check to see if a file exists. For validation when classes have input files.
28              
29             =head1 VERSION
30              
31             version 2.1.1706216
32              
33             =head1 SYNOPSIS
34              
35             Check to see if a file exists. For validation when classes have input files.
36              
37             =head1 METHODS
38              
39             =head2 does_file_exist
40              
41             Check to see if a file exists. For validation when classes have input files.
42              
43             =head1 AUTHOR
44              
45             Andrew J. Page <ap13@sanger.ac.uk>
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             This software is Copyright (c) 2012 by Wellcome Trust Sanger Institute.
50              
51             This is free software, licensed under:
52              
53             The GNU General Public License, Version 3, June 2007
54              
55             =cut