blib/lib/XML/Pastor/Meta.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 73.6% 28 / 38 CC 2 SCAR 8.1
CC
2
Cov
75%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« blib/lib/XML/Pastor/Stack.pm ↑ Summary blib/lib/XML/Pastor/Schema/NamespaceInfo.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::Meta;
8
9 10 ▶use Class::Accessor;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 10 ▶use Class::Data::Inheritable;
Subroutine BEGIN: called CC=1 SCAR=0.0
11
12 10 our @ISA = qw(Class::Accessor Class::Data::Inheritable);
13
14 10 XML::Pastor::Meta->mk_classdata('Model');
15
16
17 #----------------------------------------------
18 # Accepts a single parameter or a hash.
19 # If single parameter, then it is taken to be the value.
20 #----------------------------------------------
21 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
22 0 my $proto = shift;
23 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
24 0 my $self = {@_};
25
26 0 return bless $self, $class;
27 }
28
29 10 1;
30
31 __END__
« blib/lib/XML/Pastor/Stack.pm ↑ Summary blib/lib/XML/Pastor/Schema/NamespaceInfo.pm »