SimpleDB/GetAttributesResponse.pm

filter: Statementstmt 55.5% 10 / 18 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 53.8% 14 / 26 CC 3 SCAR 18.7
CC
3
Cov
50%
results
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« SimpleDB/Domain.pm ↑ Summary SimpleDB/QueryResponse.pm »
1 package Amazon::SimpleDB::GetAttributesResponse;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use base 'Amazon::SimpleDB::Response';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub results {
Subroutine results: not called CC=3 SCAR=24.8
Pod documented
8 0 my $self = shift;
9 my $results =
10 0 $self->{content}->{GetAttributesResponse}{GetAttributesResult}{Attribute};
11 0 my $attr = {};
12 0 for my $a (@$results) {
13 0 ▶ $attr->{$a->{'Name'}} ||= [];
Condition0%0/2
$$attr{$a->{"Name"}} ||= []
l!l
00
MC/DC0%0/1
$$attr{$a->{"Name"}} ||= []
$$attr{$a->{"Name"}}
Truth table0%0/2
A
A= $$attr{$a->{"Name"}}
Aresult
11
00
14 0 push @{$attr->{$a->{'Name'}}}, $a->{'Value'};
15 }
16 0 return $attr;
17 }
18  
19 2 1;
20  
21 __END__
« SimpleDB/Domain.pm ↑ Summary SimpleDB/QueryResponse.pm »