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

filter: Statementstmt 37.5% 18 / 48 Branchbran 4.5% 1 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 23.0% 6 / 26 Podpod 38.1% 8 / 21 totaltotal 28.2% 33 / 117 CC 11 SCAR 12.9
CC
11
Cov
27%
attachment
5.2
content_type
5.2
created_at
5.2
CRAP 3.6
« blib/lib/WWW/Shopify/Model/Blog.pm ↑ Summary blib/lib/WWW/Shopify/Model/Metafield.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::Asset;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub parent { return "WWW::Shopify::Model::Theme"; }
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
12 0 ▶sub countable { return undef; }
Subroutine countable: not called CC=1 SCAR=6.9
Pod documented
13 0 ▶sub identifier { return qw(key theme_id); }
Subroutine identifier: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 33 ▶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 "key" => new WWW::Shopify::Field::Identifier::String(),
18 "value" => new WWW::Shopify::Field::Text::HTML(),
19 "attachment" => new WWW::Shopify::Field::Text(),
20 "public_url" => new WWW::Shopify::Field::String::URL(),
21 "source_key" => new WWW::Shopify::Field::String(),
22 "src" => new WWW::Shopify::Field::String::URL(),
23 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
24 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
25 "content_type" => new WWW::Shopify::Field::String("image/(gif|jpg|png)"),
26 "size" => new WWW::Shopify::Field::Int(1, 5000)
27 }; }
28  
29 # Look into finding some way to validate whether it's value OR attachment.
30 0 ▶sub creation_minimal { return qw(key); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
31 0 ▶sub creation_filled { return qw(public_url created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
32 0 ▶sub update_filled { return qw(updated_at size src content_type); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
33 0 ▶sub update_fields { qw(attachment value key) }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
34 0 ▶sub create_method { return "PUT"; }
Subroutine create_method: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub read_scope { return "read_themes"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
37 0 ▶sub write_scope { return "write_themes"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
38  
39 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine attachment: not called CC=2 SCAR=16.6
Subroutine content_type: not called CC=2 SCAR=16.6
Subroutine created_at: not called CC=2 SCAR=16.6
Subroutine key: not called CC=2 SCAR=16.6
Subroutine public_url: not called CC=2 SCAR=16.6
Subroutine size: not called CC=2 SCAR=16.6
Subroutine source_key: not called CC=2 SCAR=16.6
Subroutine src: not called CC=2 SCAR=16.6
Subroutine updated_at: not called CC=2 SCAR=16.6
Subroutine value: 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
40  
41 1 1
« blib/lib/WWW/Shopify/Model/Blog.pm ↑ Summary blib/lib/WWW/Shopify/Model/Metafield.pm »