Condition Coverage

blib/lib/OpenGuides/Search.pm
Criterion Covered Total %
condition 42 55 76.3


and 3 conditions

line !l l&&!r l&&r condition
172 62 2 4 $args{'vars'}{'format'} and $args{'vars'}{'format'} eq 'raw'
200 46 0 22 defined $$self{'distance_in_metres'} and defined $$self{'x'}
46 0 22 defined $$self{'distance_in_metres'} and defined $$self{'x'} and defined $$self{'y'}
270 18 24 13 $$self{'search_string'} and $numres == 1
42 7 6 $$self{'search_string'} and $numres == 1 and not $$self{'return_tt_vars'}
703 59 0 9 defined $vars{'os_x'} and defined $vars{'os_y'}
59 0 9 defined $vars{'os_x'} and defined $vars{'os_y'} and defined $vars{'os_dist'}
0 2 7 defined $vars{'os_x'} and defined $vars{'os_y'} and defined $vars{'os_dist'} and $self->config->geo_handler eq 1
56 0 5 defined $vars{'osie_x'} and defined $vars{'osie_y'}
56 0 5 defined $vars{'osie_x'} and defined $vars{'osie_y'} and defined $vars{'osie_dist'}
0 2 3 defined $vars{'osie_x'} and defined $vars{'osie_y'} and defined $vars{'osie_dist'} and $self->config->geo_handler eq 2
46 0 12 defined $vars{'latitude'} and defined $vars{'longitude'}
46 0 12 defined $vars{'latitude'} and defined $vars{'longitude'} and defined $vars{'latlong_dist'}
755 29 39 0 $vars{'search'} and not $vars{'search'} =~ /^("[^"]*"|[\w \-',()!*%\[\]])+$/i

or 2 conditions

line l !l condition
168 34 34 $args{'return_output'} || 0
169 30 38 $args{'return_tt_vars'} || 0
299 4 36 $args{'vars'}{'next'} || 0
748 43 25 $vars{'search'} ||= ''
769 62 0 $args{'tt_vars'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
529 0 1 1 $content =~ /$phrase/i or $node =~ /$phrase/i