Branch Coverage

blib/lib/Elastijk/oo.pm
Criterion Covered Total %
branch 6 28 21.4


line true false branch
35 1 0 exists $args{'id'} ? :
65 3 3 exists $args{'index'} ? :
69 2 4 if ($index and exists $args{'type'} and not exists $args{'id'}) { }
74 0 2 if (($res->{'version'}{'number'} || '') ge '5') { }
103 0 0 if $res
111 0 0 unless delete $args{'uri_param'}
116 0 0 if (substr($status, 0, 1) ne '2')
126 0 0 if (substr($status, 0, 1) eq '2' and @{$res->{'hits'}{'hits'};} > 0) { }
128 0 0 if defined $r and not $r
140 0 0 unless delete $args{'uri_param'}
144 0 0 if (substr($status, 0, 1) ne '2')
149 0 0 if defined $r and not $r
157 0 0 if (substr($status, 0, 1) eq '2' and @{$res->{'hits'}{'hits'};} > 0) { }
159 0 0 if defined $r and not $r