Condition Coverage

blib/lib/WWW/Crawl4AI/Detect.pm
Criterion Covered Total %
condition 38 57 66.6


and 3 conditions

line !l l&&!r l&&r condition
64 40 2 1 defined $page->{'success'} and not $page->{'success'}
66 0 38 4 $code and $code >= 500 || $SOFT_FAIL{$code}
82 0 14 1 $code and $code >= 500 || $SOFT_FAIL{$code}
101 1 0 0 defined $cdp_url and length $cdp_url

or 2 conditions

line l !l condition
28 102 0 $page ||= {}
29 102 0 $page->{'markdown'} // ""
30 2 93 ($page->{'raw_html'} // $page->{'html'}) // ""
31 15 87 $page->{'title'} // ""
32 102 0 $page->{'status_code'} // 0
65 42 0 $page->{'status_code'} // 0
81 15 0 $page->{'status_code'} // 0
96 0 0 $timeout // 5
111 1 0 $ENV{'CRAWL4AI_PROXY_URL'} || undef

or 3 conditions

line l !l&&r !l&&!r condition
30 7 2 93 $page->{'raw_html'} // $page->{'html'}
37 8 0 94 $md =~ /$RE_BLOCK/ || $html =~ /$RE_WALL/ || $title =~ /$RE_TITLE/
49 2 2 98 $md =~ /$RE_CAPTCHA/ || $html =~ /$RE_CAPTCHA/ && $thin
56 1 7 94 $code >= 500 || $SOFT_FAIL{$code}
66 0 4 38 $code >= 500 || $SOFT_FAIL{$code}
68 0 0 38 $sig->{'js_required'} or $sig->{'blocked'}
0 0 38 $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'}
0 12 26 $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
82 1 1 13 $code >= 500 || $SOFT_FAIL{$code}