EPP/Domain/NS/List.pm

filter: Statementstmt 70.0% 7 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 71.4% 10 / 14 CC 1 SCAR 2.8
CC
1
Cov
70%
root_element
2.0
BEGIN
1.3
BEGIN
1.0
CRAP 1.3
« EPP/Domain/Info.pm ↑ Summary EPP/Domain/Notification.pm »
1 package XML::EPP::Domain::NS::List;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub root_element { 'infData' }
Subroutine root_element: not called CC=1 SCAR=6.9
7  
8 0 ▶use XML::EPP::Domain::NS;
Subroutine BEGIN: called CC=1 SCAR=2.6
9 has_element 'ns' =>
10 is => 'ro',
11 # XXX: This would be a more correct definition (from the spec) but
12 # PRANG doesn't yet let you do this.
13 # isa => 'ArrayRef[XML::EPP::Domain::NS]|ArrayRef[XML::EPP::Common::labelType]',
14 # So instead we do this:
15 isa => 'ArrayRef[XML::EPP::Domain::NS|XML::EPP::Common::labelType]',
16 xml_min => 0,
17 xml_nodeName => {
18 hostAttr => 'XML::EPP::Domain::NS',
19 hostObj => 'XML::EPP::Common::labelType',
20 },
21 ;
22  
23 1;
24  
25 =head1 NAME
26  
27 ? - implement ?
28  
29 =head1 SYNOPSIS
30  
31 TODO
32  
33 =head1 DESCRIPTION
34  
35 ...
36  
37 =head2 XML Schema Definition
38  
39 <!--
40 Name servers are either host objects or attributes.
41 -->
42 <complexType name="nsType">
43 <choice>
44 <element name="hostObj" type="eppcom:labelType"
45 maxOccurs="unbounded"/>
46 <element name="hostAttr" type="domain:hostAttrType"
47 maxOccurs="unbounded"/>
48 </choice>
49 </complexType>
50  
51 =cut
« EPP/Domain/Info.pm ↑ Summary EPP/Domain/Notification.pm »