Readlink.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran 33.3% 2 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 72.7% 24 / 33 CC 2 SCAR 4.7
CC
2
Cov
69%
BEGIN
2.5
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« Readlink/Perl510.pm ↑ Summary
1 package Win32::Shortcut::Readlink;
2  
3 2 require 5.008000;
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use base qw( Exporter );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=9.2
9  
10 # ABSTRACT: Make readlink work with shortcuts
11 2 our $VERSION = '0.03'; # VERSION
12  
13 2 ▶ if($^O =~ /^(cygwin|MSWin32)$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($^O =~ /^(cygwin|MSWin32)$/) 0 2 2
14 {
15 0 require XSLoader;
16 0 XSLoader::load('Win32::Shortcut::Readlink', $Win32::Shortcut::Readlink::VERSION);
17 }
18  
19 }
20  
21  
22 2 our @EXPORT_OK = qw( readlink );
23 2 our @EXPORT = @EXPORT_OK;
24  
25  
26 2 ▶if(eval { require 5.010000 })
Branch: 2 branches
BranchTrueFalseTotal
if (eval { do { require 5.01 } }) { } 2 0 2
elsif (eval { do { require 5.008 } }) { } 0 0 0
27 {
28 2 require Win32::Shortcut::Readlink::Perl510;
29 }
30 0 elsif(eval { require 5.008000 })
31 {
32 0 require Win32::Shortcut::Readlink::Perl58;
33 }
34 else
35 {
36 # TODO: doesn't currently work. Figure out
37 # if this is a limitation of Perl 5.6 or if
38 # I am just doing it wrong. Fix or remove
39 # if appropriate. BTW- dist requires 5.8
40 # so shouldn't even get in here if installed
41 # without hacking.
42 0 require Win32::Shortcut::Readlink::Perl56;
43 }
44  
45 2 1;
46  
47 __END__
« Readlink/Perl510.pm ↑ Summary