File Coverage

blib/lib/XML/EPP/Domain/NS/List.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package XML::EPP::Domain::NS::List;
2              
3 1     1   2636 use Moose;
  0            
  0            
4             use PRANG::Graph;
5              
6             sub root_element { 'infData' }
7              
8             use XML::EPP::Domain::NS;
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