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

filter: Statementstmt 100% 24 / 24 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 86.8% 33 / 38 CC 3 SCAR 6.0
CC
3
Cov
90%
new
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/XML/Pastor/Schema/NamespaceInfo.pm ↑ Summary blib/lib/XML/Pastor/Builtin/base64Binary.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 package XML::Pastor::Schema::SimpleType;
8 10 ▶use XML::Pastor::Schema::Type;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 10 our @ISA = qw(XML::Pastor::Schema::Type);
10
11 10 XML::Pastor::Schema::SimpleType->mk_accessors(
12 qw( enumeration
13 itemType itemClass
14 length
15 memberTypes memberClasses
16 minLength maxLength
17 minInclusive maxInclusive
18 minExclusive maxExclusive
19 pattern regex
20 totalDigits fractionDigits
21 whiteSpace
22 ));
23
24
25 50 ▶sub new {
Subroutine new: called CC=3 SCAR=11.6
Pod documented
26 50 my $proto = shift;
27 50 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
0500
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
28 50 my $self = {@_};
29
30 50 ▶ unless ($self->{contentType}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"contentType"}) 50 0 50
31 50 $self->{contentType} = "simple";
32 }
33
34 50 return bless $self, $class;
35 }
36
37 10 1;
38
39 __END__
« blib/lib/XML/Pastor/Schema/NamespaceInfo.pm ↑ Summary blib/lib/XML/Pastor/Builtin/base64Binary.pm »