Condition Coverage

blib/lib/CrawlerCommons/RobotRules.pm
Criterion Covered Total %
condition 23 29 79.3


and 3 conditions

line !l l&&!r l&&r condition
186 23 231 0 not $allow and length $prefix == 0
255 0 0 282 $with_query and $path_query ne ''
280 116 98 781 $pattern_pos < $pattern_end and $text_pos < $text_end
301 6 18 199 $text_pos + $pattern_piece_len <= $text_end and not $matched
306 18 181 261 $i < $pattern_piece_len and $matched
319 148 96 1992 $pattern_pos < $wildcard_pos and $text_pos < $text_end
336 117 97 2 $pattern_pos < $pattern_end and substr($pattern, $pattern_pos, 1) eq '*'
341 97 3 114 $pattern_pos == $pattern_end && ($text_pos == $text_end || !$contains_end_char)

or 2 conditions

line l !l condition
253 282 0 $uri->path_query // ''

or 3 conditions

line l !l&&r !l&&!r condition
257 0 0 282 not defined $path or $path eq ''