blib/lib/Math/Int64/native_if_available.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 74.0% 20 / 27 CC 3 SCAR 7.6
CC
3
Cov
80%
import
3.3
unimport
2.0
BEGIN
1.0
CRAP 2.1
« blib/lib/Math/Int64.pm ↑ Summary blib/lib/Math/UInt64.pm »
1 package Math::Int64::native_if_available;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Math::Int64 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶sub import {
Subroutine import: called CC=3 SCAR=12.0
9 2 ▶ if (Math::Int64::_backend() eq 'IV' and $] >= 5.008) {
Branch: 1 branch
BranchTrueFalseTotal
if (Math::Int64::_backend() eq "IV" and $] >= "5.008") 2 0 2
Condition33%1/3
Math::Int64::_backend() eq "IV" and $] >= "5.008"
!ll&&!rl&&r
002
MC/DC0%0/2
Math::Int64::_backend() eq "IV" and $] >= "5.008"
Math::Int64::_backend() eq "IV" $] >= "5.008"
Truth table33%1/3
A and B
A= Math::Int64::_backend() eq "IV"B= $] >= "5.008"
ABresult
0X0
100
111
10 2 Math::Int64::_set_may_use_native(1);
11 2 $^H{'Math::Int64::native_if_available'} = 1;
12 2 goto &Math::Int64::_check_pragma_compatibility;
13 }
14 }
15  
16 0 ▶sub unimport {
Subroutine unimport: not called CC=1 SCAR=6.9
17 0 undef $^H{'Math::Int64::native_if_available'};
18 }
19  
20 2 1;
21  
22 # ABSTRACT: Use the native Perl 64-bit integer implementation when available
23  
24 __END__
« blib/lib/Math/Int64.pm ↑ Summary blib/lib/Math/UInt64.pm »