blib/lib/JavaScript/Embedded/C/libPath.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
getPath
2.0
getFile
2.0
BEGIN
2.0
CRAP 2.0
1 package
2 JavaScript::Embedded::C::libPath;
3 use File::Spec;
4 my $file = File::Spec->rel2abs(__FILE__);
5 $file =~ m/(.*?)libPath\.pm/;
6 our $dir = File::Spec->canonpath( $1 );
7  
8 sub getPath {
9 my $extra = shift;
10 return File::Spec->canonpath( $dir . '/' . $extra );
11 }
12  
13 sub getFile {
14 my $file = shift;
15 $file = File::Spec->canonpath( $dir . '/' . $file );
16 }
17  
18 1;