blib/lib/PDL/PP/Signature.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 89.2% 25 / 28 CC 2 SCAR 2.9
CC
2
Cov
95%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/PDL/Perldl2/Plugin/PDLCommands.pm ↑ Summary blib/lib/PDL/Ufunc.pm »
1 =head1 NAME
2  
3 PDL::PP::Signature - Internal module to handle signatures
4  
5 =head1 DESCRIPTION
6  
7 Internal module to handle signatures
8  
9 =head1 SYNOPSIS
10  
11 use PDL::PP::Signature;
12  
13  
14 =cut
15  
16 package PDL::PP::Signature;
17 3 ▶use PDL::PP::PdlParObj;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 ▶use PDL::PP::Dims;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 3 ▶use SelfLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 3 @ISA = qw/ SelfLoader /;
23  
24 # we pass on $bvalflag to the PdlParObj's created by parse
25 # (a hack for PdlParObj::get_xsdatapdecl() which should
26 # disappear when (if?) things are done sensibly)
27 #
28 sub new {
29 6 ▶ my ($type,$str,$bvalflag) = @_;
Subroutine new: called CC=2 SCAR=7.0
Pod undocumented
30 6 ▶ $bvalflag ||= 0;
Condition50%1/2
$bvalflag ||= 0
l!l
06
MC/DC0%0/1
$bvalflag ||= 0
$bvalflag
Truth table50%1/2
A
A= $bvalflag
Aresult
11
00
31 6 my ($namep,$objp) = parse($str,$bvalflag);
32 6 return bless {Names => $namep, Objects => $objp},$type;
33 }
34  
35 3 *with = \&new;
36  
37 3 1;
38  
39 =head1 AUTHOR
40  
41 Copyright (C) Tuomas J. Lukka 1997 (lukka@husc.harvard.edu) and by Christian
42 Soeller (c.soeller@auckland.ac.nz).
43 All rights reserved. There is no warranty. You are allowed
44 to redistribute this software / documentation under certain
45 conditions. For details, see the file COPYING in the PDL
46 distribution. If this file is separated from the PDL distribution,
47 the copyright notice should be included in the file.
48  
49  
50 =cut
51  
52 __DATA__
« blib/lib/PDL/Perldl2/Plugin/PDLCommands.pm ↑ Summary blib/lib/PDL/Ufunc.pm »