File Coverage

blib/lib/XML/EPP/TrID.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::TrID;
3              
4 1     1   2555 use Moose;
  0            
  0            
5             use MooseX::Method::Signatures;
6             use Moose::Util::TypeConstraints;
7             use PRANG::Graph;
8              
9             our $SCHEMA_PKG = "XML::EPP";
10              
11             has_element 'client_id' =>
12             is => "rw",
13             isa => "${SCHEMA_PKG}::trIDStringType",
14             predicate => "has_client_id",
15             xml_nodeName => "clTRID",
16             ;
17              
18             has_element 'server_id' =>
19             is => "rw",
20             isa => "${SCHEMA_PKG}::trIDStringType",
21             xml_nodeName => "svTRID",
22             required => 1,
23             ;
24              
25             with 'XML::EPP::Node';
26              
27             subtype "${SCHEMA_PKG}::trIDType"
28             => as __PACKAGE__;
29              
30             1;
31              
32             =head2 XMLSchema definition
33              
34             <complexType name="trIDType">
35             <sequence>
36             <element name="clTRID" type="epp:trIDStringType"
37             minOccurs="0"/>
38             <element name="svTRID" type="epp:trIDStringType"/>
39             </sequence>
40             </complexType>
41              
42             =cut