blib/lib/PDL/LiteF.pm

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