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

filter: Statementstmt 35.7% 20 / 56 Branchbran 3.3% 1 / 30 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 8 / 28 Podpod 31.8% 7 / 22 totaltotal 26.4% 36 / 136 CC 15 SCAR 16.3
CC
15
Cov
24%
collects
17.7
body_html
5.4
handle
5.4
CRAP 5.1
« blib/lib/WWW/Shopify/Model/Country.pm ↑ Summary blib/lib/WWW/Shopify/Model/Shop.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::CustomCollection;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 44 ▶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 "body_html" => new WWW::Shopify::Field::String::HTML(),
14 "handle" => new WWW::Shopify::Field::String::Handle(),
15 "updated_at" => new WWW::Shopify::Field::Date(),
16 "published" => new WWW::Shopify::Field::Boolean(),
17 "published_scope" => new WWW::Shopify::Field::String::Enum(["global"]),
18 "published_at" => new WWW::Shopify::Field::Date(),
19 "id" => new WWW::Shopify::Field::Identifier(),
20 "sort_order" => new WWW::Shopify::Field::String::Enum(["manual", "best-selling", "alpha-asc", "alpha-desc", "price-asc", "price-desc", "created", "created-desc"]),
21 "template_suffix" => new WWW::Shopify::Field::String(),
22 "metafields" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Metafield"),
23 "image" => new WWW::Shopify::Field::Relation::OwnOne('WWW::Shopify::Model::CustomCollection::Image'),
24 "title" => new WWW::Shopify::Field::String::Words(1, 2),
25 "collects" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::CustomCollection::Collect")
26 }; }
27 5 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
28 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
29 created_at_min => new WWW::Shopify::Query::LowerBound('created_at'),
30 created_at_max => new WWW::Shopify::Query::UpperBound('created_at'),
31 updated_at_min => new WWW::Shopify::Query::LowerBound('updated_at'),
32 updated_at_max => new WWW::Shopify::Query::UpperBound('updated_at'),
33 }; }
34  
35 0 ▶sub get_fields { return grep { $_ ne "collects" } $_[0]->SUPER::get_fields; }
Subroutine get_fields: not called CC=1 SCAR=6.9
Pod documented
36  
37 0 ▶sub creation_minimal { return qw(title); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub creation_filled { return qw(public_url created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
40 0 ▶sub throws_webhooks { return 1; }
Subroutine throws_webhooks: not called CC=1 SCAR=6.9
Pod documented
41  
42 0 ▶sub has_metafields { return 1; }
Subroutine has_metafields: not called CC=1 SCAR=6.9
Pod undocumented
43  
44 0 ▶sub read_scope { return "read_products"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
45 0 ▶sub write_scope { return "write_products"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
46  
47 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine body_html: not called CC=2 SCAR=16.9
Subroutine collects: not called CC=4 SCAR=28.7
Subroutine handle: not called CC=2 SCAR=16.9
Subroutine id: not called CC=2 SCAR=16.9
Subroutine image: not called CC=2 SCAR=16.9
Subroutine published: not called CC=2 SCAR=16.9
Subroutine published_at: not called CC=2 SCAR=16.9
Subroutine published_scope: not called CC=2 SCAR=16.9
Subroutine sort_order: not called CC=2 SCAR=16.9
Subroutine template_suffix: not called CC=2 SCAR=16.9
Subroutine title: not called CC=2 SCAR=16.9
Subroutine updated_at: 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
Branch: 15 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"collects"} 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 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
48  
49 1 1;
« blib/lib/WWW/Shopify/Model/Country.pm ↑ Summary blib/lib/WWW/Shopify/Model/Shop.pm »