Shopify/Model/SmartCollection/Image.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
get_fields
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 package WWW::Shopify::Model::SmartCollection::Image;
7 use parent 'WWW::Shopify::Model::NestedItem';
8  
9 my $fields; sub fields { return $fields; }
10 BEGIN { $fields = {
11 "created_at" => new WWW::Shopify::Field::Date(),
12 "src" => new WWW::Shopify::Field::String::URL::Shopify(),
13 "alt" => new WWW::Shopify::Field::String(),
14 "width" => new WWW::Shopify::Field::Int(),
15 "height" => new WWW::Shopify::Field::Int(),
16 "attachment" => new WWW::Shopify::Field::String::Base64()
17 }; }
18 sub get_fields { return qw(created_at src); }
19 sub creation_minimal { return qw(attachment); }
20 sub creation_filled { return qw(src created_at width height); }
21 sub is_single { 1; }
22  
23 eval(__PACKAGE__->generate_accessors); die $@ if $@;
24  
25 1;