Branch Coverage

blib/lib/OpenSearch/Client/Role/Client/Direct.pm
Criterion Covered Total %
branch 4 50 8.0


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