Amazon/Validate/Type/SellerListingSearch.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 4 totaltotal 82.0% 32 / 39 CC 4 SCAR 6.0
CC
4
Cov
89%
validate
3.3
assert
2.1
BEGIN
1.0
CRAP 1.8
« Amazon/Validate/Type/SellerListingLookup.pm ↑ Summary Amazon/Validate/Type/SimilarityLookup.pm »
1 # -*- perl -*-
2 # !!! DO NOT EDIT !!!
3 # This file was automatically generated.
4 package Net::Amazon::Validate::Type::SellerListingSearch;
5  
6 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use constant RESPONSEGROUP_VALID_VALUES => {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 'SellerListing' => 1,
12 2 };
13  
14 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
15 2 my ($class , %options) = @_;
16 2 my $self = {
17 %options,
18 };
19 2 bless $self, $class;
20 }
21  
22 2 ▶sub assert {
Subroutine assert: called CC=2 SCAR=7.2
Pod undocumented
23 2 my ($self, $value, $name, $href) = @_;
24 2 ▶ die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $href->{$value} 2 0 2
25 }
26  
27 2 ▶sub validate {
Subroutine validate: called CC=3 SCAR=12.0
Pod undocumented
28 2 my ($self, $value, $name, $href) = @_;
29 2 ▶ if ( ref ($value) eq 'ARRAY' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $value eq 'ARRAY') { } 0 2 2
30 0 $self->assert($_, $name, $href) for (@$value);
31 } else {
32 2 $self->assert($value, $name, $href);
33 }
34 }
35  
36 2 ▶sub ResponseGroup {
Subroutine ResponseGroup: called CC=1 SCAR=0.0
Pod undocumented
37 2 my ($self, $value) = @_;
38 2 $self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES));
39 }
40  
41 2 1;
« Amazon/Validate/Type/SellerListingLookup.pm ↑ Summary Amazon/Validate/Type/SimilarityLookup.pm »