Shopify/Model/Cart/LineItem.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
creation_minimal
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::Cart::LineItem;
9  
10 use parent 'WWW::Shopify::Model::NestedItem';
11  
12 my $fields; sub fields { return $fields; }
13 BEGIN { $fields = {
14 "grams" => new WWW::Shopify::Field::Int(1, 2000),
15 "id" => new WWW::Shopify::Field::Identifier(),
16 "price" => new WWW::Shopify::Field::Money(),
17 "line_price" => new WWW::Shopify::Field::Money(),
18 "quantity" => new WWW::Shopify::Field::Int(1, 20),
19 "sku" => new WWW::Shopify::Field::String(),
20 "title" => new WWW::Shopify::Field::String::Words(1, 3),
21 "variant_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Product::Variant'),
22 "vendor" => new WWW::Shopify::Field::String()
23 }; }
24 sub creation_minimal { return qw(title); }
25 sub creation_filled { return qw(id); }
26  
27 sub singular() { return 'line_item'; }
28  
29 eval(__PACKAGE__->generate_accessors); die $@ if $@;
30  
31 1;