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

filter: Statementstmt 95.6% 22 / 23 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 83.7% 31 / 37 CC 3 SCAR 6.5
CC
3
Cov
86%
new
3.4
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/XML/Pastor/Meta.pm ↑ Summary blib/lib/XML/Pastor/Schema/SimpleType.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 package XML::Pastor::Schema::NamespaceInfo;
7 10 ▶use base qw (Class::Accessor);
Subroutine BEGIN: called CC=1 SCAR=0.0
8
9 10 XML::Pastor::Schema::NamespaceInfo->mk_accessors(qw(uri nsPrefix classPrefix id usageCount));
10
11 #------------------------------------------------------------
12 11 ▶sub new () {
Subroutine new: called CC=3 SCAR=12.3
Pod documented
13 11 my $proto = shift;
14 11 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
0110
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
15 11 my $self = {@_};
16
17 11 ▶ unless ($self->{usageCount}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"usageCount"}) 0 11 11
18 0 $self->{usageCount} = 0;
19 }
20
21 11 return bless $self, $class;
22 }
23
24 10 1;
25
26 __END__
« blib/lib/XML/Pastor/Meta.pm ↑ Summary blib/lib/XML/Pastor/Schema/SimpleType.pm »