blib/lib/PDL/Install/Files.pm

filter: Statementstmt 96.1% 25 / 26 Branchbran 66.6% 4 / 6 Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 75.5% 34 / 45 CC 5 SCAR 15.5
CC
5
Cov
84%
Inline
7.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.7
« blib/lib/PDL/Types.pm ↑ Summary blib/lib/PDL/PP/Dims.pm »
1 =head1 NAME
2  
3 PDL::Install::Files -- Module for use by L<ExtUtils::Depends> and L<Inline>
4  
5 =head1 SYNOPSIS
6  
7 use Inline with => 'PDL';
8 # or alternatively, if your XS module uses PDL:
9 use ExtUtils::Depends;
10 my $pkg = ExtUtils::Depends->new(qw(MyPackage PDL));
11  
12 =head1 DESCRIPTION
13  
14 This module is for use by L<ExtUtils::Depends> and L<Inline>. There are
15 no user-serviceable parts inside.
16  
17 =cut
18  
19 package PDL::Install::Files;
20 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 # support ExtUtils::Depends
23 1 require PDL::Core::Dev;
24  
25 1 our $VERSION = '2.009';
26  
27 1 my $self = {
28 'typemaps' => [ &PDL::Core::Dev::PDL_TYPEMAP ],
29 'inc' => &PDL::Core::Dev::PDL_INCLUDE,
30 'libs' => '',
31 'deps' => [],
32 };
33 1 our @deps = @{ $self->{deps} };
34 1 our @typemaps = @{ $self->{typemaps} };
35 1 our $libs = $self->{libs};
36 1 our $inc = $self->{inc};
37 1 our $CORE = undef;
38 1 foreach (@INC) {
39 2 ▶ if ( -f "$_/PDL/Install/Files.pm") { $CORE = $_ . "/PDL/Install/"; last; }
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$_/PDL/Install/Files.pm") 1 1 2
40 }
41  
42 0 ▶sub deps { }
Subroutine deps: not called CC=1 SCAR=0.0
Pod undocumented
43 # support: use Inline with => 'PDL';
44  
45 1 ▶sub Inline {
Subroutine Inline: called CC=5 SCAR=19.4
Pod undocumented
46 1 my ($class, $lang) = @_;
47 1 ▶ return {} if $lang eq 'Pdlpp';
Branch: 1 branch
BranchTrueFalseTotal
if $lang eq "Pdlpp" 0 1 1
48 1 ▶ unless ($ENV{"PDL_Early_Inline"} || (($Inline::VERSION//0.68) >= 0.68)) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($ENV{"PDL_Early_Inline"} or ($Inline::VERSION // "0.68") >= "0.68") 0 1 1
Condition40%2/5
$ENV{"PDL_Early_Inline"} or ($Inline::VERSION // "0.68") >= "0.68"
l!l&&r!l&&!r
010
$Inline::VERSION // "0.68"
l!l
10
MC/DC0%0/2
$ENV{"PDL_Early_Inline"} or ($Inline::VERSION // "0.68") >= "0.68"
$ENV{"PDL_Early_Inline"} $Inline::VERSION
Truth table33%1/3
A or B
A= $ENV{"PDL_Early_Inline"}B= $Inline::VERSION
ABresult
1X1
011
000
49 0 die "PDL::Inline: requires Inline version 0.68 or higher to make sense\n (yours is $Inline::VERSION). You should upgrade Inline,\n or else set \$ENV{PDL_Early_Inline} to a true value to ignore this message.\n";
50 }
51 +{
52 1 TYPEMAPS => [ &PDL::Core::Dev::PDL_TYPEMAP ],
53 INC => &PDL::Core::Dev::PDL_INCLUDE,
54 AUTO_INCLUDE => &PDL::Core::Dev::PDL_AUTO_INCLUDE,
55 BOOT => &PDL::Core::Dev::PDL_BOOT,
56 };
57 }
58  
59 1 1;
« blib/lib/PDL/Types.pm ↑ Summary blib/lib/PDL/PP/Dims.pm »