SRS/GetMessages.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 90.9% 20 / 22 SCAR 0.0
CC
1
Cov
94%
root_element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SRS/Handle.pm ↑ Summary SRS/Handle/Query.pm »
1  
2 package XML::SRS::GetMessages;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub root_element {
9 0 ▶ "GetMessages";
Subroutine root_element: not called CC=1 SCAR=6.9
10 }
11  
12 has_attr 'query_id' =>
13 is => "ro",
14 isa => "XML::SRS::UID",
15 xml_name => "QryId",
16 predicate => "has_query_id",
17 ;
18  
19 has_attr 'originating_registrar' =>
20 is => "ro",
21 isa => "Str",
22 xml_name => "OriginatingRegistrarId",
23 ;
24  
25 has_attr 'recipient_registrar' =>
26 is => "ro",
27 isa => "Str",
28 xml_name => "RecipientRegistrarId",
29 ;
30  
31 has_attr 'queue' =>
32 is => "ro",
33 isa => "Bool",
34 xml_name => "QueueMode",
35 ;
36  
37 has_element "when" =>
38 is => "ro",
39 isa => "ArrayRef[XML::SRS::Date::Range]",
40 xml_nodeName => "TransDateRange",
41 xml_required => 0,
42 ;
43  
44 has_attr 'max_results' =>
45 is => 'ro',
46 isa => 'XML::SRS::Number',
47 xml_name => 'MaxResults',
48 xml_required => 0,
49 ;
50  
51 1 ▶use XML::SRS::GetMessages::TypeFilter;
Subroutine BEGIN: called CC=1 SCAR=0.0
52 has_element "type_filter" =>
53 is => "ro",
54 isa => "ArrayRef[XML::SRS::GetMessages::TypeFilter]",
55 xml_min => 0,
56 xml_nodeName => "TypeFilter",
57 coerce => 1,
58 ;
59  
60 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 coerce 'ArrayRef[XML::SRS::GetMessages::TypeFilter]'
62 => from "ArrayRef[Str]"
63 => via {
64 [ map {
65 XML::SRS::GetMessages::TypeFilter->new(
66 Type => $_,
67 );
68 } @$_ ];
69 };
70  
71 with 'XML::SRS::Query';
72 1;
« SRS/Handle.pm ↑ Summary SRS/Handle/Query.pm »