EPP/Login.pm

filter: Statementstmt 66.6% 4 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 75.0% 6 / 8 CC 1 SCAR 1.4
CC
1
Cov
67%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
« EPP/Hello.pm ↑ Summary EPP/MixedMsg.pm »
1  
2 package XML::EPP::Login;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 0 ▶use MooseX::Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=2.6
6 use Moose::Util::TypeConstraints;
7 use PRANG::Graph;
8  
9 our $PKG = "XML::EPP::Login";
10 our $SCHEMA_PKG = "XML::EPP";
11  
12 use XML::EPP;
13 use XML::EPP::Common;
14  
15 has_element 'client_id' =>
16 is => "rw",
17 isa => "XML::EPP::Common::clIDType",
18 xml_nodeName => "clID",
19 required => 1,
20 ;
21  
22 has_element 'password' =>
23 is => "rw",
24 isa => "${SCHEMA_PKG}::pwType",
25 xml_nodeName => "pw",
26 required => 1,
27 ;
28  
29 has_element 'new_password' =>
30 is => "rw",
31 predicate => "has_new_password",
32 isa => "${SCHEMA_PKG}::pwType",
33 xml_nodeName => "newPW",
34 ;
35  
36 has_element 'options' =>
37 is => "rw",
38 isa => "${SCHEMA_PKG}::credsOptionsType",
39 required => 1,
40 ;
41  
42 has_element 'services' =>
43 is => "rw",
44 isa => "${SCHEMA_PKG}::loginSvcType",
45 xml_nodeName => "svcs",
46 required => 1,
47 ;
48  
49 with 'XML::EPP::Node';
50  
51 # based on epp-1.0.xsd:loginType
52 subtype "${SCHEMA_PKG}::loginType" =>
53 as __PACKAGE__;
54  
55 1;
« EPP/Hello.pm ↑ Summary EPP/MixedMsg.pm »