blib/lib/PDL/LiteF.pm

filter: Statementstmt 100% 33 / 33 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 97.7% 44 / 45 CC 2 SCAR 0.8
CC
2
Cov
97%
import
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/PDL.pm ↑ Summary lib/PDL/IO/Misc-pp-bswap12.c »
1 package PDL::LiteF;
2  
3 70 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 70 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 PDL::LiteF - minimum PDL module function loader
9  
10 =head1 SYNOPSIS
11  
12 use PDL::LiteF; # Is equivalent to the following:
13  
14 use PDL::Core;
15 use PDL::Ops;
16 use PDL::Primitive;
17 use PDL::Ufunc;
18 use PDL::Basic;
19 use PDL::Slices;
20 use PDL::Bad;
21  
22 =head1 DESCRIPTION
23  
24 Loads the smallest possible set of modules for
25 PDL to work, making the functions available in
26 the current namespace. If you want something even
27 smaller see the L<PDL::Lite> module.
28  
29 Note that unlike L<PDL>, this does I<not> load L<PDL::Math> or
30 L<PDL::MatrixOps>, nor any IO modules.
31  
32 =cut
33  
34 63 require PDL; # get the version
35  
36 63 our $VERSION = $PDL::VERSION;
37  
38 # Load the fundamental PDL packages, with imports
39  
40 70 ▶sub import {
Subroutine import: called CC=2 SCAR=6.9
41 70 my $pkg = (caller())[0];
42 70 ▶ eval <<EOD;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
43 package $pkg;
44  
45 use PDL::Core;
46 use PDL::Ops;
47 use PDL::Primitive;
48 use PDL::Ufunc;
49 use PDL::Basic;
50 use PDL::Slices;
51 use PDL::Bad;
52  
53 EOD
54 70 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 70 70
55 }
56  
57 63 1;
« blib/lib/PDL.pm ↑ Summary lib/PDL/IO/Misc-pp-bswap12.c »