blib/lib/ByteLoader.pm

filter: Statementstmt 43.7% 7 / 16 Branchbran 7.1% 1 / 14 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 25.0% 9 / 36 CC 1 SCAR 0.0
CC
1
Cov
24%
BEGIN
1.0
CRAP 1.0
« blib/lib/B/CC.pm ↑ Summary C.xs »
1 package ByteLoader;
2  
3 1 ▶use XSLoader ();
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 our $VERSION = '0.12';
5 # XSLoader problem:
6 # ByteLoader version 0.0601 required--this is only version 0.06_01 at ./bytecode2.plc line 2.
7 # on use ByteLoader $ByteLoader::VERSION;
8 # Fixed with use ByteLoader '$ByteLoader::VERSION';
9 # Next problem on perl-5.8.3: invalid floating constant suffix _03"
10  
11 1 ▶if ($] < 5.009004) {
Branch: 1 branch
BranchTrueFalseTotal
if ($] < 5.009004) { } 0 1 1
12 # Need to check if ByteLoader is not already linked statically.
13 # Before 5.6 byterun was in CORE, so we have no name clash.
14 0 require Config; Config->import();
15 0 ▶ if ($Config{static_ext} =~ /\bByteLoader\b/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Config{'static_ext'} =~ /\bByteLoader\b/) { } 0 0 0
16 # We overrode the static module with our site_perl version. Which version?
17 # We can only check the perl version and guess from that. From Module::CoreList
18 0 ▶ $VERSION = '0.03' if $] >= 5.006;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.006" 0 0 0
19 0 ▶ $VERSION = '0.04' if $] >= 5.006001;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.006001" 0 0 0
20 0 ▶ $VERSION = '0.05' if $] >= 5.008001;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.008001" 0 0 0
21 0 ▶ $VERSION = '0.06' if $] >= 5.009003;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.009003" 0 0 0
22 0 ▶ $VERSION = '0.06' if $] >= 5.008008 and $] < 5.009;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.008008" and $] < "5.009" 0 0 0
Condition0%0/3
$] >= "5.008008" and $] < "5.009"
!ll&&!rl&&r
000
MC/DC0%0/2
$] >= "5.008008" and $] < "5.009"
$] >= "5.008008" $] < "5.009"
Truth table0%0/3
A and B
A= $] >= "5.008008"B= $] < "5.009"
ABresult
0X0
100
111
23 } else {
24 0 XSLoader::load 'ByteLoader'; # fake the old backwards compatible version
25 }
26 } else {
27 1 XSLoader::load 'ByteLoader', $VERSION;
28 }
29  
30 1 1;
31 __END__
« blib/lib/B/CC.pm ↑ Summary C.xs »