Condition Coverage

blib/lib/WWW/Crawl4AI/DeepCrawlIterator.pm
Criterion Covered Total %
condition 15 24 62.5


and 3 conditions

line !l l&&!r l&&r condition
81 17 0 7 $self->_crawled == 0 and not @{$self->_queue;}
98 10 0 7 not defined $self->_start_host and $result->final_url
105 7 0 10 $depth < $self->max_depth and $result->ok
107 1 13 1 $self->same_host and not $self->_host_eq($url)
108 12 1 1 $self->url_filter and not $self->url_filter->($url)

or 2 conditions

line l !l condition
72 14 0 eval { do { "URI"->new($url)->host } } // ""
73 14 0 $self->_start_host // ""
101 7 0 eval { do { "URI"->new($result->final_url)->host } } // ""

or 3 conditions

line l !l&&r !l&&!r condition
129 0 0 0 !@{$self->_queue;} || @{$self->_results;} >= $self->max_pages