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

filter: Statementstmt 32.7% 18 / 55 Branchbran 3.1% 1 / 32 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 22.2% 6 / 27 Podpod 22.7% 5 / 22 totaltotal 20.1% 30 / 149 CC 19 SCAR 19.6
CC
19
Cov
20%
get_fields
30.0
callback_url
5.4
credential1
5.4
CRAP 7.1
« blib/lib/WWW/Shopify/Model/Refund.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product.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::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
BranchTrueFalseTotal
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format" and $_ ne "callback_url" and $_ ne "inventory_management" 0 0 0
Condition0%0/9
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format" and $_ ne "callback_url"
!ll&&!rl&&r
000
$_ ne "tracking_support" and $_ ne "requires_shipping_method" and $_ ne "format"
!ll&&!rl&&r
000
$_ ne "tracking_support" and $_ ne "requires_shipping_method"
!ll&&!rl&&r
000
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"
ABCDresult
0XXX0
10XX0
110X0
11100
11111
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
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 $@ 0 1 1
39  
40 1 1;
« blib/lib/WWW/Shopify/Model/Refund.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product.pm »