Condition Coverage

blib/lib/OpenGuides/Utils.pm
Criterion Covered Total %
condition 22 35 62.8


and 3 conditions

line !l l&&!r l&&r condition
100 0 153 0 $config->use_plucene and lc $config->use_plucene eq 'y' || $config->use_plucene == 1
186 1 0 4 $type and $value
423 2 13 0 scalar @lats and scalar @longs
525 587 122 1 $q->param($var) and not $q->param($var) =~ /^-?\d+$/
531 548 162 0 $q->param($var) and not $q->param($var) =~ /^-?\d+\.?(\d+)?$/
536 350 0 5 $q->param('website') and $q->param('website') ne 'http://'

or 2 conditions

line l !l condition
191 0 1 $link_title ||= 'View a random page on this guide'

or 3 conditions

line l !l&&r !l&&!r condition
100 0 153 0 lc $config->use_plucene eq 'y' || $config->use_plucene == 1
145 1 0 2 $_[2] || "View all pages in $_[0] $_[1]"
174 3 0 1 $_[2] || "View map of pages in $_[0] $_[1]"
189 2 2 0 $link_title ||= "View a random page in $type $value"
337 7 0 17 $args{'longitude'} or $args{'latitude'}