File Coverage

blib/lib/XML/EPP/Domain/AuthInfo.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::AuthInfo;
2              
3 1     1   2746 use Moose;
  0            
  0            
4             use PRANG::Graph;
5             use Moose::Util::TypeConstraints;
6              
7             with 'XML::EPP::Domain::Node';
8              
9             my $PKG = __PACKAGE__;
10              
11             subtype "${PKG}::choice0"
12             => as 'XML::EPP::Common::Password|XML::EPP::Common::ExtPassword'
13             ;
14              
15             has_element 'pw' =>
16             is => "rw",
17             isa => "${PKG}::choice0",
18             required => 1,
19             xml_nodeName => {
20             "pw" => "XML::EPP::Common::Password",
21             "ext" => "XML::EPP::Common::ExtPassword",
22             },
23             ;
24              
25             1;
26              
27             =head1 NAME
28              
29             ? - implement ?
30              
31             =head1 SYNOPSIS
32              
33             TODO
34              
35             =head1 DESCRIPTION
36              
37             ...
38              
39             =head2 XML Schema Definition
40              
41             <complexType name="authInfoType">
42             <choice>
43             <element name="pw" type="eppcom:pwAuthInfoType"/>
44             <element name="ext" type="eppcom:extAuthInfoType"/>
45             </choice>
46             </complexType>
47              
48             =cut