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

filter: Statementstmt 41.2% 26 / 63 Branchbran 2.9% 1 / 34 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 34.4% 10 / 29 Podpod 33.3% 7 / 21 totaltotal 29.9% 44 / 147 CC 17 SCAR 18.2
CC
17
Cov
28%
image
17.9
rules
17.9
body_html
5.5
CRAP 6.2
« blib/lib/WWW/Shopify/Model/GiftCard.pm ↑ Summary blib/lib/WWW/Shopify/Model/Cart.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 1 ▶use WWW::Shopify::Model::SmartCollection::Rule;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use WWW::Shopify::Model::SmartCollection::Image;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 package WWW::Shopify::Model::SmartCollection;
12 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub singular { return "smart_collection"; }
Subroutine singular: not called CC=1 SCAR=6.9
Pod documented
15 43 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
16 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
17 "body_html" => new WWW::Shopify::Field::Text::HTML(),
18 "handle" => new WWW::Shopify::Field::String::Handle(),
19 "sort_order" => new WWW::Shopify::Field::String::Enum(["manual", "automatic"]),
20 "template_suffix" => new WWW::Shopify::Field::String(),
21 "title" => new WWW::Shopify::Field::String::Words(1, 2),
22 "rules" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::SmartCollection::Rule"),
23 "image" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::SmartCollection::Image"),
24 "id" => new WWW::Shopify::Field::Identifier(),
25 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
26 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
27 "published_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
28 "published_scope" => new WWW::Shopify::Field::String()
29 }; }
30 5 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
31 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
32 created_at_min => new WWW::Shopify::Query::LowerBound('created_at'),
33 created_at_max => new WWW::Shopify::Query::UpperBound('created_at'),
34 updated_at_min => new WWW::Shopify::Query::LowerBound('updated_at'),
35 updated_at_max => new WWW::Shopify::Query::UpperBound('updated_at'),
36 }; }
37  
38  
39 0 ▶sub creation_minimal { return qw(title); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
40 0 ▶sub creation_filled { return qw(id created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
41 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
42 0 ▶sub update_fields { return qw(body_html handle sort_order template_suffix title rules image); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
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=17.0
Subroutine created_at: not called CC=2 SCAR=17.0
Subroutine handle: not called CC=2 SCAR=17.0
Subroutine id: not called CC=2 SCAR=17.0
Subroutine image: not called CC=4 SCAR=28.9
Subroutine published_at: not called CC=2 SCAR=17.0
Subroutine published_scope: not called CC=2 SCAR=17.0
Subroutine rules: not called CC=4 SCAR=28.9
Subroutine sort_order: not called CC=2 SCAR=17.0
Subroutine template_suffix: not called CC=2 SCAR=17.0
Subroutine title: not called CC=2 SCAR=17.0
Subroutine updated_at: not called CC=2 SCAR=17.0
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: 17 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
unless defined $_[0]{"image"} 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
unless defined $_[0]{"rules"} 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 $@ 0 1 1
48  
49 1 1
« blib/lib/WWW/Shopify/Model/GiftCard.pm ↑ Summary blib/lib/WWW/Shopify/Model/Cart.pm »