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

filter: Statementstmt 40.9% 18 / 44 Branchbran 4.5% 1 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.2% 6 / 22 Podpod 23.5% 4 / 17 totaltotal 27.6% 29 / 105 CC 11 SCAR 13.4
CC
11
Cov
29%
commentable
5.2
created_at
5.2
feedburner
5.2
CRAP 3.8
« blib/lib/WWW/Shopify/Model/Article.pm ↑ Summary blib/lib/WWW/Shopify/Model/Asset.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::Blog;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 34 ▶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 "title" => new WWW::Shopify::Field::String::Words(1, 3),
14 "handle" => new WWW::Shopify::Field::String::Handle(),
15 "commentable" => new WWW::Shopify::Field::String("(no|yes)"),
16 "tags" => new WWW::Shopify::Field::String(),
17 "metafields" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Metafield"),
18 "id" => new WWW::Shopify::Field::Identifier(),
19 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
20 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
21 "feedburner" => new WWW::Shopify::Field::String(),
22 "feedburner_location" => new WWW::Shopify::Field::String(),
23 "template_suffix" => new WWW::Shopify::Field::String()
24 }; }
25  
26 0 ▶sub creation_minimal { return qw(title); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
27 0 ▶sub creation_filled { return qw(id created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
28 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub read_scope { return "read_content"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
31 0 ▶sub write_scope { return "write_content"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
32  
33 0 ▶sub has_metafields { return 1; }
Subroutine has_metafields: not called CC=1 SCAR=6.9
Pod undocumented
34  
35 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine commentable: not called CC=2 SCAR=16.6
Subroutine created_at: not called CC=2 SCAR=16.6
Subroutine feedburner: not called CC=2 SCAR=16.6
Subroutine feedburner_location: not called CC=2 SCAR=16.6
Subroutine handle: not called CC=2 SCAR=16.6
Subroutine id: not called CC=2 SCAR=16.6
Subroutine tags: not called CC=2 SCAR=16.6
Subroutine template_suffix: not called CC=2 SCAR=16.6
Subroutine title: not called CC=2 SCAR=16.6
Subroutine updated_at: not called CC=2 SCAR=16.6
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 11 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 $@ 0 1 1
36  
37 1 1
« blib/lib/WWW/Shopify/Model/Article.pm ↑ Summary blib/lib/WWW/Shopify/Model/Asset.pm »