Branch Coverage

blib/lib/WWW/Crawl4AI.pm
Criterion Covered Total %
branch 29 48 60.4


line true false branch
35 1 15 if (ref $fb eq "ARRAY")
37 3 0 if $_
39 9 6 if (not $fb or $fb eq "none" or $fb eq "plain")
102 0 32 unless @args
104 0 32 if (@args == 1 and ref $args[0] eq "HASH")
110 32 0 if (@args % 2 == 1 and not ref $args[0])
124 1 24 defined $opts{'min_markdown'} ? :
125 1 24 defined $min ? :
138 2 36 if $err
146 0 36 unless defined $page
156 23 13 $good ? :
182 0 25 unless defined $url and length $url
194 23 15 if $attempt->ok
207 0 0 unless my $u = eval { do { "URI"->new($url) } }
215 0 7 unless defined $start and length $start
224 1 6 exists $opts{'max_pages'} ? :
7 0 exists $opts{'max_depth'} ? :
1 6 exists $opts{'same_host'} ? :
238 0 2 unless $last
254 2 0 $last->page ? :
2 0 $last->page ? :
288 0 0 $self->cloakbrowser_url ? :
0 0 $self->proxy_url ? :
0 0 $self->callback ? :