blib/lib/XML/Pastor/Schema/Group.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/Schema/AttributeGroup.pm ↑ Summary blib/lib/XML/Pastor/Schema/Element.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::Group;
9 10 ▶use XML::Pastor::Schema::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 10 our @ISA = qw(XML::Pastor::Schema::Object);
11
12 10 XML::Pastor::Schema::Group->mk_accessors(qw(elements elementInfo));
13
14 2 ▶sub new {
Subroutine new: called CC=5 SCAR=17.0
Pod documented
15 2 my $proto = shift;
16 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
17 2 my $self = {@_};
18
19 2 ▶ unless ($self->{elements}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"elements"}) 2 0 2
20 2 $self->{elements} = [];
21 }
22 2 ▶ unless ($self->{elementInfo}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"elementInfo"}) 2 0 2
23 2 $self->{elementInfo} = {};
24 }
25 2 ▶ unless ($self->{contentType}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"contentType"}) 2 0 2
26 2 $self->{contentType} = "group";
27 }
28
29 2 return bless $self, $class;
30 }
31
32 10 1;
33
34 __END__
« blib/lib/XML/Pastor/Schema/AttributeGroup.pm ↑ Summary blib/lib/XML/Pastor/Schema/Element.pm »