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

filter: Statementstmt 48.7% 20 / 41 Branchbran 5.5% 1 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 38.1% 8 / 21 Podpod 33.3% 5 / 15 totaltotal 35.7% 34 / 95 CC 9 SCAR 12.3
CC
9
Cov
36%
collection_id
5.1
created_at
5.1
featured
5.1
CRAP 3.4
« blib/lib/WWW/Shopify/Model/Country/Province.pm ↑ Summary blib/lib/WWW/Shopify/Model/Event.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::Collect;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 31 ▶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 "product_id" => new WWW::Shopify::Field::Relation::ReferenceOne("WWW::Shopify::Model::Product", 1),
14 "collection_id" => new WWW::Shopify::Field::Relation::ReferenceOne("WWW::Shopify::Model::CustomCollection", 1),
15 "created_at" => new WWW::Shopify::Field::Date(),
16 "updated_at" => new WWW::Shopify::Field::Date(),
17 "featured" => new WWW::Shopify::Field::Boolean(),
18 "position" => new WWW::Shopify::Field::Int(),
19 "id" => new WWW::Shopify::Field::Identifier(),
20 # Same as position, but padded with 0s. Unfortunately, this is a lie, and is ocassionally a product name, arbitarily.
21 "sort_value" => new WWW::Shopify::Field::String(),
22 }; }
23  
24  
25 2 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
26 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
27 collection_id => new WWW::Shopify::Query::Match('collection_id')
28 }; }
29  
30 0 ▶sub creation_minimal { return qw(product_id collection_id); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
31 0 ▶sub creation_filled { return qw(position created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
32 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
33  
34 0 ▶sub read_scope { return "read_products"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
35 0 ▶sub write_scope { return "write_products"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
36  
37 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine collection_id: not called CC=2 SCAR=16.3
Subroutine created_at: not called CC=2 SCAR=16.3
Subroutine featured: not called CC=2 SCAR=16.3
Subroutine id: not called CC=2 SCAR=16.3
Subroutine position: not called CC=2 SCAR=16.3
Subroutine product_id: not called CC=2 SCAR=16.3
Subroutine sort_value: not called CC=2 SCAR=16.3
Subroutine updated_at: not called CC=2 SCAR=16.3
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 9 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 $@ 0 1 1
38  
39 1 1;
« blib/lib/WWW/Shopify/Model/Country/Province.pm ↑ Summary blib/lib/WWW/Shopify/Model/Event.pm »