blib/lib/WWW/Shopify/Model/Order/LineItem.pm

filter: Statementstmt 26.4% 18 / 68 Branchbran 2.0% 1 / 50 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 6 / 30 Podpod 20.0% 5 / 25 totaltotal 17.3% 30 / 173 CC 25 SCAR 19.1
CC
25
Cov
16%
properties
18.6
tax_lines
18.6
fulfillment_service
5.6
CRAP 6.8
« blib/lib/WWW/Shopify/Model/Product.pm ↑ Summary blib/lib/WWW/Shopify/Model/Refund.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::Order::LineItem;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 72 ▶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 "fulfillment_service" => new WWW::Shopify::Field::String::Enum(["automatic", "manual"]),
14 "fulfillment_status" => new WWW::Shopify::Field::String(),
15 "grams" => new WWW::Shopify::Field::Int(1, 2000),
16 "id" => new WWW::Shopify::Field::Identifier(),
17 "price" => new WWW::Shopify::Field::Money(),
18 # These are not always filled out. If a product is deleted, these are null.
19 "product_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Product', 1),
20 "variant_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Product::Variant', 1),
21 #
22 "gift_card" => new WWW::Shopify::Field::Boolean(),
23 "quantity" => new WWW::Shopify::Field::Int(1, 20),
24 "requires_shipping" => new WWW::Shopify::Field::Boolean(),
25 "product_exists" => new WWW::Shopify::Field::Boolean(),
26 "sku" => new WWW::Shopify::Field::String(),
27 "title" => new WWW::Shopify::Field::String::Words(1, 3),
28 "variant_title" => new WWW::Shopify::Field::String::Words(1,3),
29 "vendor" => new WWW::Shopify::Field::String(),
30 "name" => new WWW::Shopify::Field::String::Words(1, 3),
31 "properties" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Order::LineItem::Property"),
32 "tax_lines" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Order::LineItem::TaxLine"),
33 "taxable" => new WWW::Shopify::Field::Boolean(),
34 "variant_inventory_management" => new WWW::Shopify::Field::String::Enum(["shopify", "manual"]) };
35 }
36  
37 0 ▶sub creatable { return undef; }
Subroutine creatable: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub deletable { return undef; }
Subroutine deletable: not called CC=1 SCAR=6.9
Pod documented
40  
41 0 ▶sub singular() { return 'line_item'; }
Subroutine singular: not called CC=1 SCAR=6.9
Pod documented
42  
43 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine fulfillment_service: not called CC=2 SCAR=17.3
Subroutine fulfillment_status: not called CC=2 SCAR=17.3
Subroutine gift_card: not called CC=2 SCAR=17.3
Subroutine grams: not called CC=2 SCAR=17.3
Subroutine id: not called CC=2 SCAR=17.3
Subroutine name: not called CC=2 SCAR=17.3
Subroutine price: not called CC=2 SCAR=17.3
Subroutine product_exists: not called CC=2 SCAR=17.3
Subroutine product_id: not called CC=2 SCAR=17.3
Subroutine properties: not called CC=4 SCAR=29.2
Subroutine quantity: not called CC=2 SCAR=17.3
Subroutine requires_shipping: not called CC=2 SCAR=17.3
Subroutine sku: not called CC=2 SCAR=17.3
Subroutine tax_lines: not called CC=4 SCAR=29.2
Subroutine taxable: not called CC=2 SCAR=17.3
Subroutine title: not called CC=2 SCAR=17.3
Subroutine variant_id: not called CC=2 SCAR=17.3
Subroutine variant_inventory_management: not called CC=2 SCAR=17.3
Subroutine variant_title: not called CC=2 SCAR=17.3
Subroutine vendor: not called CC=2 SCAR=17.3
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
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 25 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
unless defined $_[0]{"properties"} 0 0 0
if wantarray 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
unless defined $_[0]{"tax_lines"} 0 0 0
if wantarray 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
44  
45 1 1
« blib/lib/WWW/Shopify/Model/Product.pm ↑ Summary blib/lib/WWW/Shopify/Model/Refund.pm »