Condition Coverage

blib/lib/OpenGuides.pm
Criterion Covered Total %
condition 137 192 71.3


and 3 conditions

line !l l&&!r l&&r condition
204 11 61 31 $return_output && !$intercept_redirect && $args{'noheaders'}
257 101 1 0 $version and $version == $current_version
277 102 0 0 $args{'format'} and $args{'format'} eq 'raw'
311 2 11 89 $config->show_gmap_in_node_display and $self->get_cookie('display_google_maps')
320 0 0 2 $wiki->node_exists($redirect) and $redirect ne $id
0 0 2 $wiki->node_exists($redirect) and $redirect ne $id and $redirect ne $oldid
445 4 1 2 $args{'category'} and $args{'locale'}
758 6 21 9 not $since and $self->get_cookie('track_recent_changes_views')
993 33 0 2 $args{'type'} and $args{'value'}
1047 15 8 9 $cat and not $loc
0 8 15 $loc and not $cat
1112 26 3 19 defined $wgs84_lat and $wgs84_lat =~ /^[-.\d]+$/
29 0 19 defined $wgs84_lat and $wgs84_lat =~ /^[-.\d]+$/ and defined $wgs84_long
3 0 19 defined $wgs84_lat and $wgs84_lat =~ /^[-.\d]+$/ and defined $wgs84_long and $wgs84_long =~ /^[-.\d]+$/
1208 0 0 24 $args{'return_output'} and not $args{'intercept_redirect'}
1261 0 0 0 $args{'type'} and $args{'type'} ne 'metadata_type'
1496 1 1 1 $args{'format'} and $args{'format'} =~ /^rdf$/i
1 0 1 $args{'format'} and $args{'format'} eq 'opensearch'
2273 24 4 1 $exclude_locales and $node =~ /^Locale /
2274 24 3 1 $exclude_categories and $node =~ /^Category /
2286 13 3 7 $format eq 'map' and $use_leaflet
2371 0 0 9 $type and $value

or 2 conditions

line l !l condition
202 94 9 $args{'return_output'} || 0
210 0 103 $args{'oldid'} || ''
533 6 0 $args{'return_output'} || 0
551 0 6 $metadata_vars{'website'} ||= 'http://'
672 12 2 $ENV{'HTTP_REFERER'} || ''
712 28 8 $args{'return_output'} || 0
1008 17 16 $args{'cat'} || ''
1009 23 10 $args{'loc'} || ''
1064 23 10 $args{'format'} || ''
1157 0 1 $q->param('zoom') || ''
1158 0 1 $q->param('lat') || ''
1159 0 1 $q->param('long') || ''
1160 0 1 $q->param('map_type') || ''
1329 4 0 $args{'return_output'} || 0
1441 2 0 $args{'items'} || ''
1442 0 2 $args{'days'} || ''
1445 2 0 $args{'username'} || ''
1446 0 2 $args{'category'} || ''
1447 0 2 $args{'locale'} || ''
1718 4 349 $q->param('hours_text') || ''
1728 449 963 $q->param($var) || ''
1849 2 0 $args{'return_output'} || 0
1948 306 45 $config->custom_template_path || ''
2018 0 2 $args{'return_tt_vars'} || 0
2019 2 0 $args{'return_output'} || 0
2026 0 2 $args{'version'} || ''
2087 0 7 $args{'return_tt_vars'} || 0
2088 4 3 $args{'return_output'} || 0
2171 0 1 $args{'return_tt_vars'} || 0
2172 0 1 $args{'return_output'} || 0
2244 4 10 $args{'return_tt_vars'} || 0
2245 10 4 $args{'return_output'} || 0
2256 5 9 $format ||= ''
2336 10 0 $args{'noheaders'} || 0
2356 3 6 $args{'password'} || ''
2357 9 0 $args{'return_tt_vars'} || 0
2358 0 9 $args{'return_output'} || 0
2438 1 1 $args{'return_tt_vars'} || 0
2439 1 1 $args{'return_output'} || 0
2535 2 0 $args{'type'} || ''
2536 2 0 $args{'value'} || ''
2537 1 1 $args{'format'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
207 101 2 0 $args{'id'} || $self->config->home_name
465 1 1 5 $omit_cats or $omit_locs
711 2 34 0 $args{'id'} || $self->config->home_name
717 6 0 30 $args{'since'} || $q->param('since')
1011 17 15 1 $cat || $loc
1128 1 1 0 $args{'format'} eq 'rss' or $args{'format'} eq 'atom'
1220 2 0 0 $args{'return_output'} or $args{'return_tt_vars'}
1742 1 0 352 scalar @{$fails;} or $config->read_only
1797 2 348 1 $in_moderate_whitelist or not $needs_moderation
1870 2 2 38 $mdvar eq 'username' or $mdvar eq 'comment'
4 2 36 $mdvar eq 'username' or $mdvar eq 'comment' or $mdvar eq 'edit_type'
2091 1 0 6 $args{'moderation_flag'} eq '1' or $args{'moderation_flag'} eq 'yes'
1 0 6 $args{'moderation_flag'} eq '1' or $args{'moderation_flag'} eq 'yes' or $args{'moderation_flag'} eq 'on'
0 0 6 $args{'moderation_flag'} eq '1' or $args{'moderation_flag'} eq 'yes' or $args{'moderation_flag'} eq 'on' or $args{'moderation_flag'} eq 'true'