Branch Coverage

blib/lib/WWW/Crawl4AI/Detect.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
62 3 118 defined $opt{'min_markdown'} ? :
114 2 119 $md =~ /$RE_JS/ ? :
14 107 $blocked ? :
7 114 $captcha ? :
36 85 $thin ? :
8 113 $code >= 500 || $SOFT_FAIL{$code} ? :
121 0 51 unless ref $page eq "HASH"
122 1 50 if defined $page->{'success'} and not $page->{'success'}
124 4 46 if $code and $code >= 500 || $SOFT_FAIL{$code}
126 13 31 if $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
134 0 25 unless ref $page eq "HASH"
136 3 22 if $sig->{'captcha'}
137 6 16 if $sig->{'blocked'}
138 1 15 if $sig->{'js_required'}
140 2 13 if $code and $code >= 500 || $SOFT_FAIL{$code}
141 11 2 if $sig->{'thin_html'}
152 0 0 if $ua
159 1 0 unless defined $cdp_url and length $cdp_url
164 0 0 $res->is_success ? :