lib/JavaScript/Duktape/C/libPath.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 2 totaltotal 68.7% 11 / 16 CC 1 SCAR 2.9
CC
1
Cov
82%
getFile
2.0
BEGIN
1.0
getPath
1.0
CRAP 1.3
« blib/lib/JavaScript/Duktape/C/libPath.pm ↑ Summary Makefile.PL »
1 package
2 JavaScript::Duktape::C::libPath;
3 53 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 53 my $file = File::Spec->rel2abs(__FILE__);
5 53 $file =~ m/(.*?)libPath\.pm/;
6 53 our $dir = File::Spec->canonpath( $1 );
7  
8 sub getPath {
9 318 ▶ my $extra = shift;
Subroutine getPath: called CC=1 SCAR=0.0
Pod undocumented
10 318 return File::Spec->canonpath( $dir . '/' . $extra );
11 }
12  
13 sub getFile {
14 0 ▶ my $file = shift;
Subroutine getFile: not called CC=1 SCAR=6.9
Pod undocumented
15 0 $file = File::Spec->canonpath( $dir . '/' . $file );
16 }
17  
18 53 1;
« blib/lib/JavaScript/Duktape/C/libPath.pm ↑ Summary Makefile.PL »