Condition Coverage

blib/lib/Sphinx/Search.pm
Criterion Covered Total %
condition 2 219 0.9


and 3 conditions

line !l l&&!r l&&r condition
418 2 0 0 $self->{'_log'} and defined $msg
445 0 0 0 $self->{'_log'} and defined $msg
814 0 0 0 $offset =~ /^\d+$/ and $offset >= 0
815 0 0 0 $limit =~ /^\d+$/ and $limit >= 0
840 0 0 0 $max =~ /^\d+$/ and $max >= 0
953 0 0 0 $ranker >= 1 and $ranker < 9
1162 0 0 0 $value and not ref $value
1407 0 0 0 $count =~ /^\d+$/o and $count >= 0
1408 0 0 0 $delay =~ /^\d+$/o and $delay >= 0
1474 0 0 0 $flag_name eq 'max_predicted_time' and $flag_value =~ /^\d+$/
1514 0 0 0 $orderby and not ref $orderby
1515 0 0 0 $offset =~ /^\d+$/ and $limit =~ /^\d+$/
1664 0 0 0 $results->[0]{'status'} and $results->[0]{'status'} == 1
1897 0 0 0 $nfields-- > 0 and $p < $max
1904 0 0 0 $nattrs-- > 0 and $p < $max
1918 0 0 0 $count-- > 0 and $p < $max
1942 0 0 0 $nvalues-- > 0 and $p < $max
1950 0 0 0 $nvalues > 0 and $p < $max
1975 0 0 0 $words-- > 0 and $p < $max
2031 0 0 0 $packet_len == 5 and $peek_byte == 254
2273 0 0 0 ref $docs eq 'ARRAY' and defined $index
0 0 0 ref $docs eq 'ARRAY' and defined $index and defined $words
0 0 0 ref $docs eq 'ARRAY' and defined $index and defined $words and ref $opts eq 'HASH'
2646 0 0 0 $rows and $cols

or 2 conditions

line l !l condition
242 0 0 shift() || []
552 0 0 $port ||= 0
813 0 0 shift() || 0
958 0 0 $rankexp || ''
1000 0 0 shift() || ''
1362 0 0 shift() || '@group desc'
1405 0 0 shift() || 0
1655 0 0 shift() || '*'
1656 0 0 shift() || ''
1701 0 0 shift() || '*'
1702 0 0 shift() || ''
1802 0 0 $self->{'_select'} || ''
2272 0 0 $opts ||= {}
2282 0 0 $opts->{'before_match'} ||= ''
2283 0 0 $opts->{'after_match'} ||= ''
2284 0 0 $opts->{'chunk_separator'} ||= ' ... '
2285 0 0 $opts->{'limit'} ||= 256
2286 0 0 $opts->{'limit_passages'} ||= 0
2287 0 0 $opts->{'limit_words'} ||= 0
2288 0 0 $opts->{'around'} ||= 5
2289 0 0 $opts->{'exact_phrase'} ||= 0
2290 0 0 $opts->{'single_passage'} ||= 0
2291 0 0 $opts->{'use_boundaries'} ||= 0
2292 0 0 $opts->{'weight_order'} ||= 0
2293 0 0 $opts->{'query_mode'} ||= 0
2294 0 0 $opts->{'force_all_words'} ||= 0
2295 0 0 $opts->{'start_passage_id'} ||= 1
2296 0 0 $opts->{'load_files'} ||= 0
2297 0 0 $opts->{'html_strip_mode'} ||= 'index'
2298 0 0 $opts->{'allow_empty'} ||= 0
2299 0 0 $opts->{'passage_boundary'} ||= 'none'
2300 0 0 $opts->{'emit_zones'} ||= 0
2301 0 0 $opts->{'load_files_scattered'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
392 0 3 0 ref $class || $class
555 0 0 0 $port < 0 or $port >= 65536
714 0 0 0 not defined $resp or $resp == 0
889 0 0 0 $mode == 0 or $mode == 1
0 0 0 $mode == 0 or $mode == 1 or $mode == 2
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3 or $mode == 4
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3 or $mode == 4 or $mode == 5
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3 or $mode == 4 or $mode == 5 or $mode == 6
953 0 0 0 $ranker == 0 or $ranker >= 1 and $ranker < 9
1002 0 0 0 $mode == 0 or $mode == 1
0 0 0 $mode == 0 or $mode == 1 or $mode == 2
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3 or $mode == 4
0 0 0 $mode == 0 or $mode == 1 or $mode == 2 or $mode == 3 or $mode == 4 or $mode == 5
1009 0 0 0 $mode == 0 or length $sortby
1364 0 0 0 $func == 0 or $func == 1
0 0 0 $func == 0 or $func == 1 or $func == 2
0 0 0 $func == 0 or $func == 1 or $func == 2 or $func == 3
0 0 0 $func == 0 or $func == 1 or $func == 2 or $func == 3 or $func == 4
0 0 0 $func == 0 or $func == 1 or $func == 2 or $func == 3 or $func == 4 or $func == 5
1434 0 0 0 $attrtype == 1 or $attrtype == 2
0 0 0 $attrtype == 1 or $attrtype == 2 or $attrtype == 4
0 0 0 $attrtype == 1 or $attrtype == 2 or $attrtype == 4 or $attrtype == 5
0 0 0 $attrtype == 1 or $attrtype == 2 or $attrtype == 4 or $attrtype == 5 or $attrtype == 6
1474 0 0 0 &any(sub { $_ eq $flag_value; } , @{$query_flags{$flag_name};}) or $flag_name eq 'max_predicted_time' and $flag_value =~ /^\d+$/
1491 0 0 0 $flag_value eq 'normalized' or $flag_value eq 'plain'