| blib/lib/WWW/Crawl4AI/Detect.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 31 | 46 | 67.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 88 | 43 | 13 | 1 | defined $page->{'success'} and not $page->{'success'} |
| 90 | 0 | 55 | 1 | $code and $code >= 500 || $SOFT_FAIL{$code} |
| 105 | 0 | 19 | 1 | $code and $code >= 500 || $SOFT_FAIL{$code} |
| 124 | 1 | 0 | 0 | defined $cdp_url and length $cdp_url |
| line | l | !l | condition |
|---|---|---|---|
| 45 | 132 | 0 | $page ||= {} |
| 46 | 132 | 0 | $page->{'markdown'} // "" |
| 47 | 132 | 0 | $page->{'status_code'} // 0 |
| 52 | 0 | 68 | ($page->{'final_url'} // $page->{'url'}) // "" |
| 89 | 56 | 0 | $page->{'status_code'} // 0 |
| 104 | 20 | 0 | $page->{'status_code'} // 0 |
| 119 | 0 | 0 | $timeout // 5 |
| 134 | 1 | 0 | $ENV{'CRAWL4AI_PROXY_URL'} || undef |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 52 | 64 | 0 | 68 | $page->{'final_url'} // $page->{'url'} |
| 80 | 1 | 1 | 130 | $code >= 500 || $SOFT_FAIL{$code} |
| 90 | 0 | 1 | 55 | $code >= 500 || $SOFT_FAIL{$code} |
| 92 | 5 | 1 | 49 | $sig->{'blocked'} or $sig->{'captcha'} |
| 1 | 15 | 34 | $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'} | |
| 105 | 1 | 1 | 18 | $code >= 500 || $SOFT_FAIL{$code} |