blib/lib/Bat/Interpreter/Delegate/FileStore/LocalFileSystem.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Bat/Interpreter/Delegate/Executor/PartialDryRunner.pm ↑ Summary blib/lib/Bat/Interpreter/Delegate/LineLogger/Silent.pm »
1 package Bat::Interpreter::Delegate::FileStore::LocalFileSystem;
2  
3 25 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 25 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 25 ▶use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 25 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 25 with 'Bat::Interpreter::Role::FileStore';
10  
11 25 our $VERSION = '0.024'; # VERSION
12  
13 sub get_contents {
14 27 ▶ my $self = shift();
Subroutine get_contents: called CC=1 SCAR=0.0
Pod documented
15 27 my $filename = shift();
16 27 $filename = Path::Tiny::path($filename);
17 27 return $filename->slurp;
18 }
19  
20 25 1;
21  
22 __END__
« blib/lib/Bat/Interpreter/Delegate/Executor/PartialDryRunner.pm ↑ Summary blib/lib/Bat/Interpreter/Delegate/LineLogger/Silent.pm »