Branch Coverage

blib/lib/OpenSearch/Client/Role/Client/Direct.pm
Criterion Covered Total %
branch 28 50 56.0


line true false branch
39 8 0 ref $_[0] ? :
66 0 8 unless $method eq "detect"
70 0 8 unless defined $params and ref $params eq "HASH"
73 4 4 if ($dp->{'check'}{'body'})
74 2 2 if exists $params->{'body'} and defined $params->{'body'}
78 4 0 if ($dp->{'check'}{'paths'} and exists $defn->{'parts'} and defined $defn->{'parts'} and ref $defn->{'parts'} eq "HASH")
87 4 4 if $defn->{'parts'}{$pathpart}{'required'}
88 2 2 if exists $params->{$pathpart} and defined $params->{$pathpart}
102 0 8 if $params->{'path'}
111 0 14 if (ref $val eq "ARRAY")
113 0 0 if @$val > 1 and not $req->{'multi'}
116 2 12 unless (length $val)
118 0 2 if $req->{'required'}
126 2 8 unless @keys == keys %args
128 0 12 unless exists $args{$_}
148 8 0 if (defined $defn)
150 0 8 if $defn->{'required'} and not $params->{'body'}
153 0 0 if $params->{'body'}
161 0 8 unless $handlers
164 0 8 if (my $raw = delete $params->{'params'})
165 0 0 unless ref $raw eq "HASH"
171 0 0 unless my $handler = $handlers->{$key}
185 56 0 $group ? :
187 24696 2408 unless my($name) = $action =~ /^$group_qr([^.]+)$/
189 0 2408 if $stash->has_symbol('&' . $name)