Branch Coverage

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


line true false branch
50 3 126 defined $opt{'min_markdown'} ? :
107 2 127 $thin && $md =~ /$RE_JS/ ? :
17 112 $blocked ? :
7 122 $captcha ? :
49 80 $thin ? :
2 127 $code >= 500 || $SOFT_FAIL{$code} ? :
114 0 53 unless ref $page eq "HASH"
115 1 52 if defined $page->{'success'} and not $page->{'success'}
117 1 51 if $code and $code >= 500 || $SOFT_FAIL{$code}
119 13 33 if $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
127 0 26 unless ref $page eq "HASH"
129 3 23 if $sig->{'captcha'}
130 6 17 if $sig->{'blocked'}
131 1 16 if $sig->{'js_required'}
133 2 14 if $code and $code >= 500 || $SOFT_FAIL{$code}
134 11 3 if $sig->{'thin_html'}
145 0 0 if $ua
152 1 0 unless defined $cdp_url and length $cdp_url
157 0 0 $res->is_success ? :