Branch Coverage

blib/lib/Net/Amazon/Request.pm
Criterion Covered Total %
branch 25 40 62.5


line true false branch
85 15 0 unless exists $$self{'page'}
88 1 14 if grep {$operation eq $_;} 'TextStream'
91 15 0 unless (exists $$self{'sort'})
92 2 13 defined {All => '', Blended => '', Exchange => '', Seller => ''}->{$operation} ? :
94 13 2 if length $sort
102 0 15 if ($$self{'type'}) { }
103 0 0 if (ref $$self{'type'} eq 'ARRAY') { }
118 14 1 unless $@
121 1 14 defined {Seller => 'ListingPage'}->{$operation} ? :
126 14 1 if defined $$self{'type'}
133 11 4 if ({ASIN => 'ItemLookup', Actor => 'ItemSearch', All => 'ItemSearch', Artist => 'ItemSearch', Author => 'ItemSearch', Blended => 'ItemSearch', BrowseNode => 'ItemSearch', Director => 'ItemSearch', EAN => 'ItemLookup', Exchange => 'SellerListingLookup', ISBN => 'ItemLookup', Keyword => 'ItemSearch', Keywords => 'ItemSearch', MP3Downloads => 'ItemSearch', Manufacturer => 'ItemSearch', MusicLabel => 'ItemSearch', Power => 'ItemSearch', Publisher => 'ItemSearch', Seller => 'SellerListingSearch', Similar => 'SimilarityLookup', TextStream => 'ItemSearch', Title => 'ItemSearch', UPC => 'ItemLookup'}->{$operation} eq 'ItemSearch')
135 0 253 if defined $$self{lc $_}
157 0 0 unless (grep {$operation eq $_;} 'TextStream')
188 0 0 if (defined {heavy => 'Large', lite => 'Medium'}->{$response_group}) { }
0 0 elsif ($valid->ResponseGroup($response_group)) { }
218 56 4 if (exists $$options{$original})
223 58 2 unless $callback
242 0 15 unless defined $$options{$key}
281 1 10 if $request_type eq 'Keyword'
301 0 0 defined {Seller => 'ListingPage'}->{$operation} ? :