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

filter: Statementstmt 39.2% 20 / 51 Branchbran 3.8% 1 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 29.6% 8 / 27 Podpod 23.8% 5 / 21 totaltotal 27.2% 34 / 125 CC 13 SCAR 13.5
CC
13
Cov
27%
author
5.3
blog_id
5.3
body_html
5.3
CRAP 3.9
« blib/lib/WWW/Shopify/Model/Cart/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/Blog.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::Article;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 42 ▶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 "author" => new WWW::Shopify::Field::String::Name(),
14 "body_html" => new WWW::Shopify::Field::Text::HTML(),
15 "summary_html" => new WWW::Shopify::Field::Text::HTML(),
16 "published" => new WWW::Shopify::Field::Boolean(),
17 "published_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00'),
18 "metafields" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Metafield"),
19 "tags" => new WWW::Shopify::Field::String::Words(1, 7),
20 "title" => new WWW::Shopify::Field::String::Words(1, 3),
21 "user_id" => new WWW::Shopify::Field::Int(),
22 "id" => new WWW::Shopify::Field::Identifier(),
23 "blog_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Blog'),
24 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
25 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now')
26 }; }
27  
28 9 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
29 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
30 created_at_min => new WWW::Shopify::Query::LowerBound('created_at'),
31 created_at_max => new WWW::Shopify::Query::UpperBound('created_at'),
32 updated_at_min => new WWW::Shopify::Query::LowerBound('updated_at'),
33 updated_at_max => new WWW::Shopify::Query::UpperBound('updated_at'),
34 published_at_min => new WWW::Shopify::Query::LowerBound('published_at'),
35 published_at_max => new WWW::Shopify::Query::UpperBound('published_at'),
36 published_status => new WWW::Shopify::Query::Enum('published', ['published', 'unpublished', 'any']),
37 since_id => new WWW::Shopify::Query::LowerBound('id')
38 }; }
39  
40 0 ▶sub has_metafields { return 1; }
Subroutine has_metafields: not called CC=1 SCAR=6.9
Pod undocumented
41 0 ▶sub parent { return "WWW::Shopify::Model::Blog" }
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
42 0 ▶sub creation_minimal { return qw(title); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
43 0 ▶sub update_fields { return qw(author body_html summary_html published_at tags title); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
44 0 ▶sub included_in_parnet { return 0; }
Subroutine included_in_parnet: not called CC=1 SCAR=6.9
Pod undocumented
45  
46 0 ▶sub read_scope { return "read_content"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
47 0 ▶sub write_scope { return "write_content"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
48  
49 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine author: not called CC=2 SCAR=16.8
Subroutine blog_id: not called CC=2 SCAR=16.8
Subroutine body_html: not called CC=2 SCAR=16.8
Subroutine created_at: not called CC=2 SCAR=16.8
Subroutine id: not called CC=2 SCAR=16.8
Subroutine published: not called CC=2 SCAR=16.8
Subroutine published_at: not called CC=2 SCAR=16.8
Subroutine summary_html: not called CC=2 SCAR=16.8
Subroutine tags: not called CC=2 SCAR=16.8
Subroutine title: not called CC=2 SCAR=16.8
Subroutine updated_at: not called CC=2 SCAR=16.8
Subroutine user_id: not called CC=2 SCAR=16.8
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: 13 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 $@ 0 1 1
50  
51 1 1
« blib/lib/WWW/Shopify/Model/Cart/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/Blog.pm »