Amazon/Validate/Type/ListLookup.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 42 CC 3 SCAR 12.8
CC
3
Cov
0%
assert
6.0
validate
6.0
new
2.0
CRAP 3.6
1 # -*- perl -*-
2 # !!! DO NOT EDIT !!!
3 # This file was automatically generated.
4 package Net::Amazon::Validate::Type::ListLookup;
5  
6 use 5.006;
7 use strict;
8 use warnings;
9  
10 use constant RESPONSEGROUP_VALID_VALUES => {
11 'Accessories' => 1,
12 'BrowseNodes' => 1,
13 'EditorialReview' => 1,
14 'Images' => 1,
15 'ItemAttributes' => 1,
16 'ItemIds' => 1,
17 'Large' => 1,
18 'ListFull' => 1,
19 'ListInfo' => 1,
20 'ListItems' => 1,
21 'ListmaniaLists' => 1,
22 'Medium' => 1,
23 'OfferFull' => 1,
24 'OfferListings' => 1,
25 'OfferSummary' => 1,
26 'Offers' => 1,
27 'PromotionDetails' => 1,
28 'PromotionSummary' => 1,
29 'Reviews' => 1,
30 'SalesRank' => 1,
31 'Similarities' => 1,
32 'Small' => 1,
33 'Subjects' => 1,
34 'Tracks' => 1,
35 'VariationMinimum' => 1,
36 'VariationSummary' => 1,
37 'Variations' => 1,
38 };
39  
40 sub new {
41 my ($class , %options) = @_;
42 my $self = {
43 %options,
44 };
45 bless $self, $class;
46 }
47  
48 sub assert {
49 my ($self, $value, $name, $href) = @_;
50 die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value};
51 }
52  
53 sub validate {
54 my ($self, $value, $name, $href) = @_;
55 if ( ref ($value) eq 'ARRAY' ) {
56 $self->assert($_, $name, $href) for (@$value);
57 } else {
58 $self->assert($value, $name, $href);
59 }
60 }
61  
62 sub ResponseGroup {
63 my ($self, $value) = @_;
64 $self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES));
65 }
66  
67 1;