Branch Coverage

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


line true false branch
27 3 99 defined $opt{'min_markdown'} ? :
56 2 100 $md =~ /$RE_JS/ ? :
8 94 $blocked ? :
4 98 $captcha ? :
36 66 $thin ? :
8 94 $code >= 500 || $SOFT_FAIL{$code} ? :
63 0 43 unless ref $page eq "HASH"
64 1 42 if defined $page->{'success'} and not $page->{'success'}
66 4 38 if $code and $code >= 500 || $SOFT_FAIL{$code}
68 12 26 if $sig->{'js_required'} or $sig->{'blocked'} or $sig->{'captcha'} or $sig->{'thin_html'}
76 0 22 unless ref $page eq "HASH"
78 2 20 if $sig->{'captcha'}
79 4 16 if $sig->{'blocked'}
80 1 15 if $sig->{'js_required'}
82 2 13 if $code and $code >= 500 || $SOFT_FAIL{$code}
83 11 2 if $sig->{'thin_html'}
94 0 0 if $ua
101 1 0 unless defined $cdp_url and length $cdp_url
106 0 0 $res->is_success ? :