Condition Coverage

blib/lib/OpenGuides/Template.pm
Criterion Covered Total %
condition 65 89 73.0


and 3 conditions

line !l l&&!r l&&r condition
145 0 234 8 $formatting_rules_node and not $formatting_rules_link
152 247 9 0 $config->enable_page_deletion and lc $config->enable_page_deletion eq 'y' || $config->enable_page_deletion eq '1'
215 183 4 1 defined $args{'content_type'} and $args{'content_type'} eq ''
374 719 0 13 $website and $website ne 'http://'
719 0 13 $website and $website ne 'http://' and is_web_uri($website)
495 0 169 64 defined $os_x and length $os_x
169 0 64 defined $os_x and length $os_x and defined $os_y
169 1 63 defined $os_x and length $os_x and defined $os_y and length $os_y
24 129 17 defined $lat and length $lat
153 0 17 defined $lat and length $lat and defined $long
129 0 17 defined $lat and length $lat and defined $long and length $long
509 0 152 81 defined $os_x and length $os_x
152 0 81 defined $os_x and length $os_x and defined $os_y
152 1 80 defined $os_x and length $os_x and defined $os_y and length $os_y
544 0 2 55 defined $osie_x and length $osie_x
2 0 55 defined $osie_x and length $osie_x and defined $osie_y
2 0 55 defined $osie_x and length $osie_x and defined $osie_y and length $osie_y
0 1 1 defined $lat and length $lat
1 0 1 defined $lat and length $lat and defined $long
1 0 1 defined $lat and length $lat and defined $long and length $long
557 0 1 56 defined $osie_x and length $osie_x
1 0 56 defined $osie_x and length $osie_x and defined $osie_y
1 0 56 defined $osie_x and length $osie_x and defined $osie_y and length $osie_y
586 0 3 66 defined $lat and length $lat
3 0 66 defined $lat and length $lat and defined $long
3 0 66 defined $lat and length $lat and defined $long and length $long
624 8 0 4 defined $vars{$var} and length $vars{$var}

or 2 conditions

line l !l condition
126 206 50 $config->custom_template_path || ''

or 3 conditions

line l !l&&r !l&&!r condition
152 2 6 1 lc $config->enable_page_deletion eq 'y' || $config->enable_page_deletion eq '1'
252 247 9 0 $output ||= qq[ERROR

\n Sorry! Something went wrong. Please contact the site administrator\n at $contact_email and quote the\n following error message:

Failed to process template: ] . $tt->error . '
'