Condition Coverage

blib/lib/CrawlerCommons/RobotRulesParser.pm
Criterion Covered Total %
condition 31 49 63.2


and 3 conditions

line !l l&&!r l&&r condition
203 0 70 1 $content_len >= 3 and substr($content, 0, 1) eq "\357"
70 0 1 $content_len >= 3 and substr($content, 0, 1) eq "\357" and substr($content, 1, 1) eq "\273"
70 0 1 $content_len >= 3 and substr($content, 0, 1) eq "\357" and substr($content, 1, 1) eq "\273" and substr($content, 2, 1) eq "\277"
0 69 1 $content_len >= 2 and substr($content, 0, 1) eq "\377"
69 0 1 $content_len >= 2 and substr($content, 0, 1) eq "\377" and substr($content, 1, 1) eq "\376"
0 68 1 $content_len >= 2 and substr($content, 0, 1) eq "\376"
68 0 1 $content_len >= 2 and substr($content, 0, 1) eq "\376" and substr($content, 1, 1) eq "\377"
227 0 71 0 ($content_type // '') ne '' && lc($content_type // '') =~ m[^text/html]
465 1322 1 39 $agent_name eq '*' and not $state->is_matched_wildcard

or 2 conditions

line l !l condition
195 73 0 $content // ''
231 71 0 $content // ''
232 3 0 $content // ''
360 265 0 $token->data // ''
430 20 0 $sitemap_url->host // ''
463 1362 0 $agent_name // ''
501 1561 0 $directive //= ''
510 1522 0 $data //= ''

or 3 conditions

line l !l&&r !l&&!r condition
231 0 3 68 $is_html_type or ($content // '') =~ /$SIMPLE_HTML_PATTERN/
503 2 1520 39 $directive =~ /^acap\-/ or 'CrawlerCommons::RobotDirective'->directive_exists($directive)