Branch Coverage

blib/lib/App/ElasticSearch/Utilities/Aggregations.pm
Criterion Covered Total %
branch 11 48 22.9


line true false branch
102 0 0 unless $agg
103 0 0 unless exists $Aggregations{$agg}
104 0 0 unless exists $Aggregations{$agg}{'single_stat'}
114 1 3 $def =~ s/^(\w+)=// ? :
116 1 3 if (@parts == 1)
122 0 3 if (exists $Aggregations{$parts[0]}) { }
133 2 1 if ($paramStr and $paramStr =~ /\w+=/) { }
1 0 elsif (exists $Aggregations{$agg}{'params'}) { }
137 0 2 unless $k and $v
138 0 2 $v =~ /,/ ? :
145 2 0 $agg eq 'terms' ? :
167 0 0 if ($hash->{'value_as_string'}) { }
0 0 elsif ($hash->{'value'}) { }
0 0 elsif ($hash->{'values'}) { }
176 0 0 if $hash->{'values'}{$k}
181 0 0 if $k eq "buckets"
183 0 0 if defined $hash->{'values'}{$k}
188 0 0 if ($field) { }
190 0 0 if ($result->{'key'} and exists $result->{'doc_count'})
198 0 0 if (ref $result->{$k} eq "HASH")
201 0 0 if (my $buckets = delete $result->{$k}{'buckets'})
206 0 0 if (keys %buckets) { }
208 0 0 if (@{$buckets{$k};}) { }
227 0 0 if ($buckets and @{$buckets;}) { }