blib/lib/OpenGuides.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 135 | 192 | 70.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
205 | 11 | 96 | 0 | $return_output && !$intercept_redirect && $args{'noheaders'} |
257 | 105 | 1 | 0 | $version and $version == $current_version |
277 | 106 | 0 | 0 | $args{'format'} and $args{'format'} eq 'raw' |
311 | 2 | 11 | 93 | $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 | 3 | 0 | $args{'category'} and $args{'locale'} |
758 | 6 | 22 | 9 | not $since and $self->get_cookie('track_recent_changes_views') |
996 | 33 | 2 | 0 | $args{'type'} and $args{'value'} |
1050 | 15 | 8 | 9 | $cat and not $loc |
0 | 8 | 15 | $loc and not $cat | |
1115 | 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]+$/ | |
1211 | 0 | 0 | 24 | $args{'return_output'} and not $args{'intercept_redirect'} |
1264 | 0 | 0 | 0 | $args{'type'} and $args{'type'} ne 'metadata_type' |
1499 | 1 | 1 | 1 | $args{'format'} and $args{'format'} =~ /^rdf$/i |
1 | 0 | 1 | $args{'format'} and $args{'format'} eq 'opensearch' | |
2276 | 24 | 4 | 1 | $exclude_locales and $node =~ /^Locale / |
2277 | 24 | 3 | 1 | $exclude_categories and $node =~ /^Category / |
2289 | 13 | 3 | 7 | $format eq 'map' and $use_leaflet |
2374 | 0 | 0 | 9 | $type and $value |
line | l | !l | condition |
---|---|---|---|
202 | 98 | 9 | $args{'return_output'} || 0 |
210 | 0 | 107 | $args{'oldid'} || '' |
533 | 6 | 0 | $args{'return_output'} || 0 |
551 | 0 | 6 | $metadata_vars{'website'} ||= 'http://' |
672 | 12 | 2 | $ENV{'HTTP_REFERER'} || '' |
712 | 29 | 8 | $args{'return_output'} || 0 |
1011 | 17 | 16 | $args{'cat'} || '' |
1012 | 23 | 10 | $args{'loc'} || '' |
1069 | 23 | 10 | $args{'format'} || '' |
1160 | 0 | 1 | $q->param('zoom') || '' |
1161 | 0 | 1 | $q->param('lat') || '' |
1162 | 0 | 1 | $q->param('long') || '' |
1163 | 0 | 1 | $q->param('map_type') || '' |
1332 | 4 | 0 | $args{'return_output'} || 0 |
1444 | 2 | 0 | $args{'items'} || '' |
1445 | 0 | 2 | $args{'days'} || '' |
1448 | 2 | 0 | $args{'username'} || '' |
1449 | 0 | 2 | $args{'category'} || '' |
1450 | 0 | 2 | $args{'locale'} || '' |
1721 | 4 | 351 | $q->param('hours_text') || '' |
1731 | 451 | 969 | $q->param($var) || '' |
1852 | 2 | 0 | $args{'return_output'} || 0 |
1951 | 308 | 45 | $config->custom_template_path || '' |
2021 | 0 | 2 | $args{'return_tt_vars'} || 0 |
2022 | 2 | 0 | $args{'return_output'} || 0 |
2029 | 0 | 2 | $args{'version'} || '' |
2090 | 0 | 7 | $args{'return_tt_vars'} || 0 |
2091 | 4 | 3 | $args{'return_output'} || 0 |
2174 | 0 | 1 | $args{'return_tt_vars'} || 0 |
2175 | 0 | 1 | $args{'return_output'} || 0 |
2247 | 4 | 10 | $args{'return_tt_vars'} || 0 |
2248 | 10 | 4 | $args{'return_output'} || 0 |
2259 | 5 | 9 | $format ||= '' |
2343 | 10 | 0 | $args{'noheaders'} || 0 |
2359 | 3 | 6 | $args{'password'} || '' |
2360 | 9 | 0 | $args{'return_tt_vars'} || 0 |
2361 | 0 | 9 | $args{'return_output'} || 0 |
2441 | 1 | 1 | $args{'return_tt_vars'} || 0 |
2442 | 1 | 1 | $args{'return_output'} || 0 |
2538 | 2 | 0 | $args{'type'} || '' |
2539 | 2 | 0 | $args{'value'} || '' |
2540 | 1 | 1 | $args{'format'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
207 | 105 | 2 | 0 | $args{'id'} || $self->config->home_name |
465 | 1 | 1 | 5 | $omit_cats or $omit_locs |
711 | 2 | 35 | 0 | $args{'id'} || $self->config->home_name |
717 | 6 | 0 | 31 | $args{'since'} || $q->param('since') |
1014 | 17 | 15 | 1 | $cat || $loc |
1131 | 1 | 1 | 0 | $args{'format'} eq 'rss' or $args{'format'} eq 'atom' |
1223 | 2 | 0 | 0 | $args{'return_output'} or $args{'return_tt_vars'} |
1745 | 1 | 0 | 354 | scalar @{$fails;} or $config->read_only |
1800 | 2 | 350 | 1 | $in_moderate_whitelist or not $needs_moderation |
1873 | 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' | |
2094 | 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' |