File Coverage

blib/lib/XML/SRS/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::SRS::Response;
3              
4 1     1   1394 use Moose;
  0            
  0            
5             use Moose::Util::TypeConstraints;
6             use MooseX::Method::Signatures;
7             use PRANG::Graph;
8             use XML::SRS::Types;
9             use XML::SRS::Result;
10             use XML::SRS::Error;
11              
12             has_attr "registrar_id" =>
13             is => "ro",
14             isa => "XML::SRS::RegistrarId",
15             xml_required => 0,
16             xml_name => "RegistrarId",
17             ;
18              
19             has_element "results" =>
20             is => "ro",
21             isa => "ArrayRef[XML::SRS::Result|XML::SRS::Error]",
22             xml_nodeName => {
23             Response => "XML::SRS::Result",
24             Error => "XML::SRS::Error",
25             },
26             ;
27              
28             sub root_element { "NZSRSResponse" }
29             with 'XML::SRS', 'XML::SRS::Node', 'XML::SRS::Version';
30              
31             sub BUILDARGS {
32             my $inv = shift;
33             my %args = @_;
34             if ( $args{version} ) {
35             %args = (%args, $inv->buildargs_version($args{version}));
36             }
37             \%args;
38             }
39              
40             1;
41