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
« lib/JavaScript/Duktape.pm ↑ Summary lib/JavaScript/Duktape/C/FunctionsMap.pl »
1 package
2 JavaScript::Duktape::C::libPath;
3 56 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 56 my $file = File::Spec->rel2abs(__FILE__);
5 56 $file =~ m/(.*?)libPath\.pm/;
6 56 our $dir = File::Spec->canonpath( $1 );
7  
8 336 ▶sub getPath {
Subroutine getPath: called CC=1 SCAR=0.0
Pod undocumented
9 336 my $extra = shift;
10 336 return File::Spec->canonpath( $dir . '/' . $extra );
11 }
12  
13 0 ▶sub getFile {
Subroutine getFile: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $file = shift;
15 0 $file = File::Spec->canonpath( $dir . '/' . $file );
16 }
17  
18 56 1;
« lib/JavaScript/Duktape.pm ↑ Summary lib/JavaScript/Duktape/C/FunctionsMap.pl »