blib/lib/XPanel.pm

filter: Statementstmt 100% 48 / 48 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 91.5% 54 / 59 CC 2 SCAR 3.0
CC
2
Cov
96%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package XPanel;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 $VERSION = '0.0.1';
8  
9  
10 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod undocumented
11 1 my $this = shift;
12 1 ▶ my $class = ref($this) || $this;
Condition33%1/3
ref $this || $this
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table33%1/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
13 1 my $self = {};
14 1 bless $self, $class;
15 1 $self->_initialize();
16 1 return $self;
17 }
18  
19 1 ▶sub _initialize {
Subroutine _initialize: called CC=1 SCAR=0.0
20 1 my $self = shift;
21 1 $self->{'customer_id'} = 0;
22 1 $self->{'login_name'} = '';
23 1 $self->{'password'} = '';
24 1 $self->{'status'} = 'notValidated';
25 1 $self->{'password_hint'} = '';
26 1 $self->{'call_in_pin'} = 0;
27 1 $self->{'first_name'} = '';
28 1 $self->{'middle_name'} = '';
29 1 $self->{'last_name'} = '';
30 1 $self->{'organization'} = '';
31 1 $self->{'address1'} = '';
32 1 $self->{'address2'} = '';
33 1 $self->{'city'} = '';
34 1 $self->{'state'} = '';
35 1 $self->{'postal_code'} = '';
36 1 $self->{'country'} = '';
37 1 $self->{'work_phone'} = 0;
38 1 $self->{'home_phone'} = '';
39 1 $self->{'mobile_phone'} = '';
40 1 $self->{'fax'} = '';
41 1 $self->{'email'} = '';
42 1 $self->{'account_type'} = 0;
43 1 $self->{'gender'} = '';
44 1 $self->{'birthday'} = '';
45 1 $self->{'language'} = 'en-US';
46 1 $self->{'subscribe'} = 0;
47 1 $self->{'last_ip_address'} = '';
48 1 $self->{'comments'} = '';
49 1 $self->{'creation_date'} = '0000-00-00 00:00:00';
50 1 $self->{'updated_date'} = '0000-00-00 00:00:00';
51 }
52  
53 2 1;
54 __END__
↑ Summary