Schema/ComplexTypeNode.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 90.0% 18 / 20 CC 2 SCAR 3.5
CC
2
Cov
93%
compile
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Schema/Node.pm ↑ Summary Schema/AttributeNode.pm »
1 package XML::Validator::Schema::ComplexTypeNode;
2 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 5 ▶use base 'XML::Validator::Schema::ElementNode';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 XML::Validator::Schema::ComplexTypeNode
10  
11 =head1 DESCRIPTION
12  
13 This is an internal module used by XML::Validator::Schema to represent
14 complexType nodes derived from XML Schema documents.
15  
16 =cut
17  
18 8 ▶sub compile {
Subroutine compile: called CC=2 SCAR=7.1
Pod undocumented
19 8 my ($self) = shift;
20 8 $self->SUPER::compile();
21  
22 # register in the library if this is a named type
23 $self->root->{type_library}->add(name => $self->{name},
24 obj => $self)
25 8 ▶ if $self->{name};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"name"} 8 0 8
26 }
27  
28 5 1;
« Schema/Node.pm ↑ Summary Schema/AttributeNode.pm »