File Coverage

blib/lib/Bat/Interpreter/Delegate/FileStore/LocalFileSystem.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Bat::Interpreter::Delegate::FileStore::LocalFileSystem;
2              
3 25     25   205 use utf8;
  25         66  
  25         233  
4              
5 25     25   849 use Moo;
  25         59  
  25         157  
6 25     25   30276 use Path::Tiny;
  25         292509  
  25         1622  
7 25     25   244 use namespace::autoclean;
  25         69  
  25         277  
8              
9             with 'Bat::Interpreter::Role::FileStore';
10              
11             our $VERSION = '0.024'; # VERSION
12              
13             sub get_contents {
14 27     27 1 334 my $self = shift();
15 27         72 my $filename = shift();
16 27         162 $filename = Path::Tiny::path($filename);
17 27         1453 return $filename->slurp;
18             }
19              
20             1;
21              
22             __END__