SRS/Handle/Query.pm

filter: Statementstmt 96.5% 28 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 94.5% 35 / 37 CC 1 SCAR 1.2
CC
1
Cov
97%
root_element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« SRS/Handle.pm ↑ Summary SRS/Contact.pm »
1  
2 package XML::SRS::Handle::Query;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $XML::SRS::Handle::Query::VERSION = '0.09';
5 }
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use PRANG::XMLSchema::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use PRANG::Coerce;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 # attributes
15 1 has_attr 'max_results' =>
16 is => 'ro',
17 isa => 'XML::SRS::Number',
18 xml_name => 'MaxResults',
19 xml_required => 0,
20 ;
21  
22 1 has_attr 'skip_results' =>
23 is => 'ro',
24 isa => 'XML::SRS::Number',
25 xml_name => 'SkipResults',
26 xml_required => 0,
27 ;
28  
29 1 has_attr 'count_results' =>
30 is => 'ro',
31 isa => 'XML::SRS::Boolean',
32 xml_name => 'CountResults',
33 xml_required => 0,
34 ;
35  
36 # elements
37 1 has_element 'handle_id_filter' =>
38 is => 'rw',
39 isa => 'PRANG::Coerce::ArrayRefOfStrs',
40 xml_nodeName => 'HandleIdFilter',
41 xml_required => 0,
42 coerce => 1,
43 ;
44  
45 1 has_element 'search_date_range' =>
46 is => 'ro',
47 isa => 'XML::SRS::Date::Range',
48 xml_required => 0,
49 xml_nodeName => 'SearchDateRange',
50 ;
51  
52 1 has_element 'changed_in_date_range' =>
53 is => 'ro',
54 isa => 'XML::SRS::Date::Range',
55 xml_required => 0,
56 xml_nodeName => 'ChangedInDateRange',
57 ;
58  
59 1 has_element 'contact_filter' =>
60 is => 'ro',
61 isa => 'XML::SRS::Contact::Filter',
62 xml_nodeName => 'ContactFilter',
63 xml_required => 0,
64 ;
65  
66 0 ▶sub root_element {'HandleDetailsQry'}
Subroutine root_element: not called CC=1 SCAR=6.9
67 1 with 'XML::SRS::Query';
68  
69 1 1;
« SRS/Handle.pm ↑ Summary SRS/Contact.pm »