blib/lib/WWW/Shopify/Model/Product/Image.pm

filter: Statementstmt 45.0% 18 / 40 Branchbran 5.5% 1 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 6 / 20 Podpod 26.6% 4 / 15 totaltotal 31.1% 29 / 93 CC 9 SCAR 12.7
CC
9
Cov
33%
attachment
5.1
created_at
5.1
filename
5.1
CRAP 3.5
« blib/lib/WWW/Shopify/Model/Metafield.pm ↑ Summary blib/lib/WWW/Shopify/Model/CarrierService.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::Product::Image;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 30 ▶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 "id" => new WWW::Shopify::Field::Identifier(),
14 "position" => new WWW::Shopify::Field::Int(1, 4),
15 "src" => new WWW::Shopify::Field::String::URL::Image(),
16 "attachment" => new WWW::Shopify::Field::Text(),
17 "filename" => new WWW::Shopify::Field::String(),
18 "product_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Product'),
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 "metafields" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Metafield')
22 }; }
23  
24 0 ▶sub creation_minimal { return qw(filename); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
25 0 ▶sub creation_filled { return qw(id created_at ); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
26 # Odd, even without an update method, it still has an updated at.
27 0 ▶sub updated_filled { return qw(updated_at); }
Subroutine updated_filled: not called CC=1 SCAR=6.9
Pod undocumented
28  
29 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
30  
31 0 ▶sub read_scope { return "read_products"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub write_scope { return "write_products"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine attachment: not called CC=2 SCAR=16.3
Subroutine created_at: not called CC=2 SCAR=16.3
Subroutine filename: 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 src: 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
35  
36 1 1
« blib/lib/WWW/Shopify/Model/Metafield.pm ↑ Summary blib/lib/WWW/Shopify/Model/CarrierService.pm »