lib/JavaScript/Embedded/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/Embedded/C/libPath.pm ↑ Summary lib/JavaScript/Embedded/C/FunctionsMap.pl »
1 package
2 JavaScript::Embedded::C::libPath;
3 57 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 57 my $file = File::Spec->rel2abs(__FILE__);
5 57 $file =~ m/(.*?)libPath\.pm/;
6 57 our $dir = File::Spec->canonpath( $1 );
7  
8 342 ▶sub getPath {
Subroutine getPath: called CC=1 SCAR=0.0
Pod undocumented
9 342 my $extra = shift;
10 342 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 57 1;
« blib/lib/JavaScript/Embedded/C/libPath.pm ↑ Summary lib/JavaScript/Embedded/C/FunctionsMap.pl »