| blib/lib/OpenGuides/Utils.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 35 | 62.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 100 | 0 | 152 | 0 | $config->use_plucene and lc $config->use_plucene eq 'y' || $config->use_plucene == 1 |
| 186 | 1 | 0 | 4 | $type and $value |
| 420 | 2 | 13 | 0 | scalar @lats and scalar @longs |
| 522 | 583 | 122 | 1 | $q->param($var) and not $q->param($var) =~ /^-?\d+$/ |
| 528 | 544 | 162 | 0 | $q->param($var) and not $q->param($var) =~ /^-?\d+\.?(\d+)?$/ |
| 533 | 348 | 0 | 5 | $q->param('website') and $q->param('website') ne 'http://' |
| line | l | !l | condition |
|---|---|---|---|
| 191 | 0 | 1 | $link_title ||= 'View a random page on this guide' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 100 | 0 | 152 | 0 | lc $config->use_plucene eq 'y' || $config->use_plucene == 1 |
| 145 | 1 | 0 | 2 | $_[2] || "View all pages in $_[0] $_[1]" |
| 174 | 1 | 0 | 1 | $_[2] || "View map of pages in $_[0] $_[1]" |
| 189 | 2 | 2 | 0 | $link_title ||= "View a random page in $type $value" |
| 334 | 7 | 0 | 17 | $args{'longitude'} or $args{'latitude'} |