Branch Coverage

blib/lib/OTRS/SphinxSearch.pm
Criterion Covered Total %
branch 34 48 70.8


line true false branch
40 17 1 if defined $param{'config'}
42 1 17 unless $$self{'config'}{'Index'}
170 8 0 if ($param{'Result'})
174 1 7 if ($param{'SortBy'} and $$self{'sort_map'}{$param{'SortBy'}})
178 1 7 if ($param{'OrderBy'} and $$self{'order_map'}{$param{'OrderBy'}})
182 8 0 if ($$self{'sort_mode'} == $SORT_MODE)
187 1 7 if ($param{'Fulltext'})
194 71 1 unless $param{$key}
201 101 3 unless defined $param{$key}
202 1 2 unless ref $param{$key} eq 'ARRAY'
217 40 0 unless defined $param{$key}
222 0 0 if ($param{$key} eq 'TimePoint') { }
0 0 elsif ($param{$key} eq 'TimeSlot') { }
241 0 0 if (defined $$self{'time_start'} and defined $$self{'time_stop'})
274 0 8 if ($$self{'result'} eq 'COUNT') { }
0 8 elsif ($$self{'result'} eq 'ARRAY') { }
287 0 8 if $$self{'sphinx_object'}->IsConnectError
302 1 12 unless defined $$param{$_}
321 1 1 if $@
334 1 14 unless defined $$param{$_}
336 2 2 unless $$param{'time_point_start'} =~ /Last|Before/
337 0 2 unless defined $$self{'time_dimension_map'}{$$param{'time_point_format'}}
345 1 1 if ($$param{'time_point_start'} eq 'Last') { }
1 0 elsif ($$param{'time_point_start'} eq 'Before') { }