File Coverage

blib/lib/XML/EPP/Domain.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              
2             package XML::EPP::Domain;
3 1     1   2527 use Moose::Role;
  0            
  0            
4              
5             with qw(XML::EPP::Plugin PRANG::Graph);
6              
7             use Moose::Util::TypeConstraints;
8             use PRANG::XMLSchema::Types;
9             use XML::EPP::Common;
10              
11             our $PKG;
12              
13             BEGIN {
14             $PKG = "XML::EPP::Domain";
15              
16             enum "${PKG}::hostsType" => qw( all del none sub );
17              
18             enum "${PKG}::statusValueType" => qw (
19             clientDeleteProhibited
20             clientHold
21             clientRenewProhibited
22             clientTransferProhibited
23             clientUpdateProhibited
24             inactive
25             ok
26             pendingCreate
27             pendingDelete
28             pendingRenew
29             pendingTransfer
30             pendingUpdate
31             serverDeleteProhibited
32             serverHold
33             serverRenewProhibited
34             serverTransferProhibited
35             serverUpdateProhibited
36             );
37              
38             enum "${PKG}::contactAttrType" => qw( admin billing tech );
39              
40             subtype "${PKG}::pLimitType" =>
41             => as "PRANG::XMLSchema::short"
42             => where { $_ >= 1 and $_ <= 99 };
43              
44             enum "${PKG}::pUnitType" => qw( y m );
45              
46             subtype "${PKG}::clIDChgType"
47             => as "PRANG::XMLSchema::token"
48             => where {
49             length($_) <= 16;
50             };
51             }
52              
53             use XML::EPP::Domain::Check;
54             use XML::EPP::Domain::Info;
55             use XML::EPP::Domain::Transfer;
56             use XML::EPP::Domain::Create;
57             use XML::EPP::Domain::Delete;
58             use XML::EPP::Domain::Renew;
59             use XML::EPP::Domain::Update;
60              
61             use XML::EPP::Domain::Check::Response;
62             use XML::EPP::Domain::Info::Response;
63             use XML::EPP::Domain::Transfer::Response;
64             use XML::EPP::Domain::Create::Response;
65             # no response needed for 'Delete', already covered
66             use XML::EPP::Domain::Renew::Response;
67             # no response needed for 'Update', already covered
68             use XML::EPP::Domain::Notification;
69              
70             # load up all other classes under XML::EPP::Domain
71             use XML::EPP::Domain::AddRem;
72             use XML::EPP::Domain::AuthInfo;
73             use XML::EPP::Domain::Change;
74             use XML::EPP::Domain::Check::Name;
75             use XML::EPP::Domain::Check::Status;
76             use XML::EPP::Domain::Contact;
77             use XML::EPP::Domain::HostAttr;
78             use XML::EPP::Domain::Info::Name;
79             use XML::EPP::Domain::Node;
80             use XML::EPP::Domain::Notification::Name;
81             use XML::EPP::Domain::NS::List;
82             use XML::EPP::Domain::NS;
83             use XML::EPP::Domain::Period;
84             use XML::EPP::Domain::RQ;
85             use XML::EPP::Domain::RS;
86             use XML::EPP::Domain::Status;
87              
88             1;