blib/lib/BitArray.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 CC 2 SCAR 3.2
CC
2
Cov
90%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1
2 package BitArray;
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶ use Exporter ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶ use vars qw ($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 $VERSION = 0.01;
9 1 @ISA = qw (Exporter);
10 #Give a hoot don't pollute, do not export more than needed by default
11 1 @EXPORT = qw ();
12 1 @EXPORT_OK = qw ();
13 1 %EXPORT_TAGS = ();
14 }
15
16
17 ########################################### main pod documentation begin ##
18 # Below is the stub of documentation for your module. You better edit it!
19
20
21 =head1 NAME
22
23 BitArray -
24
25 =head1 SYNOPSIS
26
27 use BitArray
28 blah blah blah
29
30
31 =head1 DESCRIPTION
32
33 Stub documentation for this module was created by ExtUtils::ModuleMaker.
34 It looks like the author of the extension was negligent enough
35 to leave the stub unedited.
36
37 Blah blah blah.
38
39
40 =head1 USAGE
41
42
43
44 =head1 BUGS
45
46
47
48 =head1 SUPPORT
49
50
51
52 =head1 AUTHOR
53
54 A. U. Thor
55 a.u.thor@a.galaxy.far.far.away
56 http://a.galaxy.far.far.away/modules
57
58 =head1 COPYRIGHT
59
60 This program is free software licensed under the...
61
62 The BSD License
63
64 The full text of the license can be found in the
65 LICENSE file included with this module.
66
67
68 =head1 SEE ALSO
69
70 perl(1).
71
72 =cut
73
74 ############################################# main pod documentation end ##
75
76
77 ################################################ subroutine header begin ##
78
79 =head2 sample_function
80
81 Usage : How to use this function/method
82 Purpose : What it does
83 Returns : What it returns
84 Argument : What it wants to know
85 Throws : Exceptions and other anomolies
86 Comments : This is a sample subroutine header.
87 : It is polite to include more pod and fewer comments.
88
89 See Also :
90
91 =cut
92
93 ################################################## subroutine header end ##
94
95
96 sub new
97 1 ▶{
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
98 1 my ($class, %parameters) = @_;
99
100 1 ▶ my $self = bless ({}, ref ($class) || $class);
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
101
102 1 return ($self);
103 }
104
105
106 1 1; #this line is important and will help the module return a true value
107 __END__
↑ Summary