blib/lib/WWW/Shopify/Model/Address.pm

filter: Statementstmt 33.9% 18 / 53 Branchbran 2.9% 1 / 34 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 24.0% 6 / 25 Podpod 20.0% 4 / 20 totaltotal 21.9% 29 / 132 CC 17 SCAR 15.2
CC
17
Cov
22%
address1
5.5
address2
5.5
city
5.5
CRAP 4.6
« blib/lib/WWW/Shopify/Model/Product/Variant.pm ↑ Summary blib/lib/WWW/Shopify/Private.pm »
1 #!/usr/bin/perl
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use WWW::Shopify;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package WWW::Shopify::Model::Address;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 51 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
12 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 "address1" => new WWW::Shopify::Field::String::Address(),
14 "address2" => new WWW::Shopify::Field::String::Address(),
15 "city" => new WWW::Shopify::Field::String::City(),
16 "company" => new WWW::Shopify::Field::String::Words(1, 3),
17 "country" => new WWW::Shopify::Field::String::Country(),
18 "first_name" => new WWW::Shopify::Field::String::FirstName(),
19 "last_name" => new WWW::Shopify::Field::String::LastName(),
20 "latitude" => new WWW::Shopify::Field::Float(-90, 90),
21 "longitude" => new WWW::Shopify::Field::Float(-180, 180),
22 "phone" => new WWW::Shopify::Field::String::Phone(),
23 "province" => new WWW::Shopify::Field::String::Words(1),
24 "zip" => new WWW::Shopify::Field::String::Zip(),
25 "name" => new WWW::Shopify::Field::String::Words(1, 3),
26 "country_code" => new WWW::Shopify::Field::String::CountryCode(),
27 "province_code" => new WWW::Shopify::Field::String::ProvinceCode(),
28 "id" => new WWW::Shopify::Field::Identifier()
29 }; }
30 0 ▶sub plural { return 'addresses'; }
Subroutine plural: not called CC=1 SCAR=6.9
Pod documented
31 0 ▶sub parent { return undef; }
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
32  
33 # Addresses are always included in both customer and order objects.
34 0 ▶sub included_in_parent { return 1; }
Subroutine included_in_parent: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine address1: not called CC=2 SCAR=17.0
Subroutine address2: not called CC=2 SCAR=17.0
Subroutine city: not called CC=2 SCAR=17.0
Subroutine company: not called CC=2 SCAR=17.0
Subroutine country: not called CC=2 SCAR=17.0
Subroutine country_code: not called CC=2 SCAR=17.0
Subroutine first_name: not called CC=2 SCAR=17.0
Subroutine id: not called CC=2 SCAR=17.0
Subroutine last_name: not called CC=2 SCAR=17.0
Subroutine latitude: not called CC=2 SCAR=17.0
Subroutine longitude: not called CC=2 SCAR=17.0
Subroutine name: not called CC=2 SCAR=17.0
Subroutine phone: not called CC=2 SCAR=17.0
Subroutine province: not called CC=2 SCAR=17.0
Subroutine province_code: not called CC=2 SCAR=17.0
Subroutine zip: not called CC=2 SCAR=17.0
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 17 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
37  
38 1 1;
« blib/lib/WWW/Shopify/Model/Product/Variant.pm ↑ Summary blib/lib/WWW/Shopify/Private.pm »