File Coverage

blib/lib/XML/EPP/Response.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::Response;
3              
4 1     1   2541 use Moose;
  0            
  0            
5             use MooseX::StrictConstructor;
6             use MooseX::Method::Signatures;
7             use Moose::Util::TypeConstraints;
8             use PRANG::Graph;
9              
10             our $SCHEMA_PKG = "XML::EPP";
11             our $PKG = __PACKAGE__;
12              
13             use XML::EPP::Result;
14             has_element 'result' =>
15             is => "rw",
16             isa => "ArrayRef[${SCHEMA_PKG}::resultType]",
17             required => 1,
18             ;
19              
20             use XML::EPP::MsgQ;
21             has_element 'msgQ' =>
22             is => "rw",
23             isa => "${SCHEMA_PKG}::msgQType",
24             predicate => "has_msgQ",
25             ;
26              
27             use XML::EPP::SubResponse;
28              
29             has_element 'response' =>
30             is => "rw",
31             isa => "${SCHEMA_PKG}::SubResponse",
32             predicate => "has_response",
33             xml_nodeName => "resData",
34             ;
35              
36             has_element 'extension' =>
37             is => "rw",
38             isa => "${SCHEMA_PKG}::extAnyType",
39             predicate => "has_extension",
40             ;
41              
42             has_element 'tx_id' =>
43             is => "rw",
44             isa => "${SCHEMA_PKG}::trIDType",
45             xml_nodeName => "trID",
46             required => 1,
47             ;
48              
49             with 'XML::EPP::Node';
50              
51             subtype "${SCHEMA_PKG}::responseType"
52             => as __PACKAGE__;
53              
54             sub is_command { 0 }
55              
56             1;