SRS/Contact/Address.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 82.3% 14 / 17 CC 1 SCAR 1.8
CC
1
Cov
83%
address
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« SRS/UDAIValid/Query.pm ↑ Summary SRS/UDAIValid.pm »
1  
2 package XML::SRS::Contact::Address;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $XML::SRS::Contact::Address::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  
10 0 ▶sub address() {
Subroutine address: not called CC=1 SCAR=6.9
11 0 my $self = shift;
12
13 0 ( $self->address1,
14 $self->address2,
15 $self->city,
16 $self->region,
17 $self->postcode,
18 $self->cc,
19 );
20 }
21  
22 has_attr 'address1' =>
23 is => "rw",
24 isa => "Str",
25 xml_required => 0,
26 xml_name => "Address1",
27 ;
28  
29 has_attr 'address2' =>
30 is => "rw",
31 isa => "Str",
32 xml_required => 0,
33 xml_name => "Address2",
34 ;
35  
36 has_attr 'city' =>
37 is => "rw",
38 isa => "Str",
39 xml_required => 0,
40 xml_name => "City",
41 ;
42  
43 has_attr 'region' =>
44 is => "rw",
45 isa => "Str",
46 xml_required => 0,
47 xml_name => "Province",
48 ;
49  
50 has_attr 'cc' =>
51 is => "rw",
52 isa => "Str",
53 xml_required => 0,
54 xml_name => "CountryCode",
55 ;
56  
57 has_attr 'postcode' =>
58 is => "rw",
59 isa => "Str",
60 xml_required => 0,
61 xml_name => "PostalCode",
62 ;
63  
64 with 'XML::SRS::Node';
65  
66 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
67  
68 coerce __PACKAGE__
69 => from "HashRef"
70 => via { __PACKAGE__->new(%$_); };
71  
72 1;
73  
74 __END__
« SRS/UDAIValid/Query.pm ↑ Summary SRS/UDAIValid.pm »