Condition Coverage

blib/lib/WWW/Crawl4AI/Detect.pm
Criterion Covered Total %
condition 46 62 74.1


and 3 conditions

line !l l&&!r l&&r condition
122 40 10 1 defined $page->{'success'} and not $page->{'success'}
124 0 46 4 $code and $code >= 500 || $SOFT_FAIL{$code}
140 0 14 1 $code and $code >= 500 || $SOFT_FAIL{$code}
159 1 0 0 defined $cdp_url and length $cdp_url

or 2 conditions

line l !l condition
63 121 0 $page ||= {}
64 121 0 $page->{'markdown'} // ""
65 2 112 ($page->{'raw_html'} // $page->{'html'}) // ""
66 19 102 $page->{'title'} // ""
67 121 0 $page->{'status_code'} // 0
72 0 69 ($page->{'final_url'} // $page->{'url'}) // ""
123 50 0 $page->{'status_code'} // 0
139 15 0 $page->{'status_code'} // 0
154 0 0 $timeout // 5
169 1 0 $ENV{'CRAWL4AI_PROXY_URL'} || undef

or 3 conditions

line l !l&&r !l&&!r condition
65 7 2 112 $page->{'raw_html'} // $page->{'html'}
72 52 0 69 $page->{'final_url'} // $page->{'url'}
81 2 6 107 $md =~ /$RE_BLOCK/ || $html =~ /$RE_WALL/ || $title =~ /$RE_TITLE/ || $final =~ /$RE_CHALLENGE_WALL/
104 2 3 114 $thin && ($md =~ /$RE_CAPTCHA/ || $html =~ /$RE_CAPTCHA/) || $md =~ /$RE_CAPTCHA/ && $md =~ /$RE_CAPTCHA_PROMPT/ || $final =~ /$RE_CHALLENGE_CAPTCHA/
114 1 7 113 $code >= 500 || $SOFT_FAIL{$code}
124 0 4 46 $code >= 500 || $SOFT_FAIL{$code}
126 0 2 44 $sig->{'js_required'} or $sig->{'blocked'}
2 1 43 $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'}
1 12 31 $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
140 1 1 13 $code >= 500 || $SOFT_FAIL{$code}