Shopify/Model/FulfillmentService.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 12 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 70 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
cancellable
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use WWW::Shopify;
7  
8 package WWW::Shopify::Model::FulfillmentService;
9 use parent "WWW::Shopify::Model::Item";
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "callback_url" => new WWW::Shopify::Field::String::URL(),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "email" => new WWW::Shopify::Field::String::Email(),
16 "handle" => new WWW::Shopify::Field::String::Handle(),
17 "include_pending_stock" => new WWW::Shopify::Field::Boolean(),
18 "credential1" => new WWW::Shopify::Field::String::Email(),
19 "name" => new WWW::Shopify::Field::String(),
20 "service_name" => new WWW::Shopify::Field::String(),
21 "inventory_management" => new WWW::Shopify::Field::Boolean(),
22 "provider_id" => new WWW::Shopify::Field::String(),
23 "credential2_exists" => new WWW::Shopify::Field::Boolean(),
24 "format" => new WWW::Shopify::Field::String::Enum(["json", "xml"]),
25 "requires_shipping_method" => new WWW::Shopify::Field::Boolean(),
26 "tracking_support" => new WWW::Shopify::Field::Boolean()
27 } }
28 sub cancellable { return undef; }
29 sub deletable { return undef; }
30  
31 sub read_scope { return "read_fulfillments"; }
32 sub write_scope { return "write_fulfillments"; }
33  
34 sub get_fields { return grep { $_ ne "tracking_support" && $_ ne "requires_shipping_method" && $_ ne "format" && $_ ne "callback_url" && $_ ne "inventory_management" } keys(%{$_[0]->fields}); }
35 sub creation_minimal { return qw(name callback_url inventory_management tracking_support requires_shipping_method format); }
36 sub creation_filled { return qw(id); }
37  
38 eval(__PACKAGE__->generate_accessors); die $@ if $@;
39  
40 1;