Branch Coverage

blib/lib/WWW/Crawl4AI/DeepCrawlIterator.pm
Criterion Covered Total %
branch 19 20 95.0


line true false branch
64 0 20 unless my $u = eval { do { "URI"->new($url) } }
81 7 17 if ($self->_crawled == 0 and not @{$self->_queue;})
86 6 18 unless @{$self->_queue;}
87 1 17 if @{$self->_results;} >= $self->max_pages
95 4 13 if $self->on_page
98 7 10 if (not defined $self->_start_host and $result->final_url)
105 10 7 if ($depth < $self->max_depth and $result->ok)
107 1 14 if $self->same_host and not $self->_host_eq($url)
108 1 13 if $self->url_filter and not $self->url_filter->($url)
119 1 19 if $self->_seen->{$canon}++