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

filter: Statementstmt 50.0% 18 / 36 Branchbran 6.2% 1 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 35.2% 6 / 17 Podpod 25.0% 3 / 12 totaltotal 34.5% 28 / 81 CC 8 SCAR 12.5
CC
8
Cov
37%
active
5.0
callback_url
5.0
carrier_service_type
5.0
CRAP 3.5
« blib/lib/WWW/Shopify/Model/Product/Image.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/Risk.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::CarrierService;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 24 ▶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 "id" => new WWW::Shopify::Field::Identifier(),
14 "name" => new WWW::Shopify::Field::String(),
15 "callback_url" => new WWW::Shopify::Field::String::URL(),
16 "format" => new WWW::Shopify::Field::String::Enum(["json", "xml"]),
17 "service_discovery" => new WWW::Shopify::Field::Boolean(),
18 "active" => new WWW::Shopify::Field::Boolean(),
19 "carrier_service_type" => new WWW::Shopify::Field::String::Enum(["api"]),
20 }; }
21  
22 0 ▶sub creation_minimal { return qw(name callback_url format service_discovery); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
23 0 ▶sub creation_filled { return qw(id active carrier_service_type); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
24  
25 0 ▶sub read_scope { return "read_shipping"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
26 0 ▶sub write_scope { return "write_shipping"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
27  
28 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine active: not called CC=2 SCAR=16.0
Subroutine callback_url: not called CC=2 SCAR=16.0
Subroutine carrier_service_type: not called CC=2 SCAR=16.0
Subroutine format: not called CC=2 SCAR=16.0
Subroutine id: not called CC=2 SCAR=16.0
Subroutine name: not called CC=2 SCAR=16.0
Subroutine service_discovery: not called CC=2 SCAR=16.0
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 8 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 $@ 0 1 1
29  
30 1 1;
« blib/lib/WWW/Shopify/Model/Product/Image.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/Risk.pm »