blib/lib/XML/Pastor/Schema/AttributeGroup.pm

filter: Statementstmt 100% 28 / 28 Branchbran 50.0% 3 / 6 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 84.7% 39 / 46 CC 5 SCAR 11.7
CC
5
Cov
86%
new
5.5
BEGIN
1.0
BEGIN
1.0
CRAP 3.2
« blib/lib/XML/Pastor/Builtin/dateTime.pm ↑ Summary blib/lib/XML/Pastor/Schema/Group.pm »
1 10 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6
7 #=================================================
8 package XML::Pastor::Schema::AttributeGroup;
9
10 10 ▶use XML::Pastor::Schema::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
11
12 10 our @ISA = qw(XML::Pastor::Schema::Object);
13
14 10 XML::Pastor::Schema::AttributeGroup->mk_accessors(qw(attributes attributeInfo));
15
16 2 ▶sub new {
Subroutine new: called CC=5 SCAR=17.0
Pod documented
17 2 my $proto = shift;
18 2 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
19 2 my $self = {@_};
20
21 2 ▶ unless ($self->{attributes}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"attributes"}) 2 0 2
22 2 $self->{attributes} = [];
23 }
24 2 ▶ unless ($self->{attributeInfo}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"attributeInfo"}) 2 0 2
25 2 $self->{attributeInfo} = {};
26 }
27 2 ▶ unless ($self->{contentType}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"contentType"}) 2 0 2
28 2 $self->{contentType} = "attributeGroup";
29 }
30
31 2 return bless $self, $class;
32 }
33
34 10 1;
35
36 __END__
« blib/lib/XML/Pastor/Builtin/dateTime.pm ↑ Summary blib/lib/XML/Pastor/Schema/Group.pm »