| 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::FulfillmentService; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 1 | ▶ | use parent "WWW::Shopify::Model::Item"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 45 | ▶ | 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 | "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 | 0 | ▶ | sub cancellable { return undef; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
cancellable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | ▶ | sub deletable { return undef; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
deletable: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 0 | ▶ | sub read_scope { return "read_fulfillments"; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
read_scope: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | 0 | ▶ | sub write_scope { return "write_fulfillments"; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
write_scope: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 0 | ▶ | sub get_fields { return grep { $_ ne "tracking_support" && $_ ne "requires_shipping_method" && $_ ne "format" && $_ ne "callback_url" && $_ ne "inventory_management" } keys(%{$_[0]->fields}); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_fields: not called CC=5 SCAR=34.0
Pod
documented
Branch: 1 branch
Condition0%0/9
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format" and $_ ne "callback_url"
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format"
$_ ne "tracking_support" and $_ ne "requires_shipping_method"
MC/DC0%0/4
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format" and $_ ne "callback_url"
$_ ne "tracking_support"
$_ ne "requires_shipping_method"
$_ ne "format"
$_ ne "callback_url"
Truth table0%0/5
A and B and C and D
A= $_ ne "tracking_support"B= $_ ne "requires_shipping_method"C= $_ ne "format"D= $_ ne "callback_url"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | 0 | ▶ | sub creation_minimal { return qw(name callback_url inventory_management tracking_support requires_shipping_method format); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
creation_minimal: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | 0 | ▶ | sub creation_filled { return qw(id); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
creation_filled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | 0 | ▶ | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
callback_url: not called CC=2 SCAR=16.9
Subroutine
credential1: not called CC=2 SCAR=16.9
Subroutine
credential2_exists: not called CC=2 SCAR=16.9
Subroutine
email: not called CC=2 SCAR=16.9
Subroutine
format: not called CC=2 SCAR=16.9
Subroutine
handle: not called CC=2 SCAR=16.9
Subroutine
id: not called CC=2 SCAR=16.9
Subroutine
include_pending_stock: not called CC=2 SCAR=16.9
Subroutine
inventory_management: not called CC=2 SCAR=16.9
Subroutine
name: not called CC=2 SCAR=16.9
Subroutine
provider_id: not called CC=2 SCAR=16.9
Subroutine
requires_shipping_method: not called CC=2 SCAR=16.9
Subroutine
service_name: not called CC=2 SCAR=16.9
Subroutine
tracking_support: not called CC=2 SCAR=16.9
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: 15 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||