Branch Coverage

blib/lib/WWW/Crawl4AI/Detect.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
44 3 129 defined $opt{'min_markdown'} ? :
73 15 117 $final =~ /$RE_CHALLENGE_WALL/ ? :
74 3 129 $final =~ /$RE_CHALLENGE_CAPTCHA/ ? :
80 43 89 $thin ? :
2 130 $code >= 500 || $SOFT_FAIL{$code} ? :
87 0 57 unless ref $page eq "HASH"
88 1 56 if defined $page->{'success'} and not $page->{'success'}
90 1 55 if $code and $code >= 500 || $SOFT_FAIL{$code}
92 16 34 if $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
100 0 26 unless ref $page eq "HASH"
102 1 25 if $sig->{'captcha'}
103 5 20 if $sig->{'blocked'}
105 2 18 if $code and $code >= 500 || $SOFT_FAIL{$code}
106 14 4 if $sig->{'thin_html'}
117 0 0 if $ua
124 1 0 unless defined $cdp_url and length $cdp_url
129 0 0 $res->is_success ? :