Shopify/Model/Event.pm untested

filter: Statementstmt 0.0% 0 / 31 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 10 totaltotal 0.0% 0 / 57 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
get_all_through_parent
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use WWW::Shopify;
7  
8 package WWW::Shopify::Model::Event;
9 use parent 'WWW::Shopify::Model::Item';
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "arguments" => new WWW::Shopify::Field::String(),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "body" => new WWW::Shopify::Field::String(),
16 "created_at" => new WWW::Shopify::Field::Date(),
17 "message" => new WWW::Shopify::Field::String::Words(),
18 "author" => new WWW::Shopify::Field::String(),
19 "subject_id" => new WWW::Shopify::Field::Identifier(),
20 "subject_type" => new WWW::Shopify::Field::String::Enum([qw(Article Blog Collection Comment Customer Order Page Product)]),
21 "verb" => new WWW::Shopify::Field::String()
22 }; }
23  
24 sub get_all_through_parent { return undef; }
25 sub get_through_parent { return undef; }
26 sub creatable { return undef; }
27 sub updatable { return undef; }
28 sub deletable { return undef; }
29 sub get_order { return ({ 'asc' => 'id' }) }
30  
31 my $queries; sub queries { return $queries; }
32 BEGIN { $queries = {
33 created_at_min => new WWW::Shopify::Query::LowerBound('created_at'),
34 created_at_max => new WWW::Shopify::Query::UpperBound('created_at'),
35 filter => new WWW::Shopify::Query::Enum('subject_type', $fields->{subject_type}->values),
36 verb => new WWW::Shopify::Query::Match('verb'),
37 since_id => new WWW::Shopify::Query::LowerBound('id')
38 }; }
39  
40  
41 eval(__PACKAGE__->generate_accessors); die $@ if $@;
42  
43 1;