Condition Coverage

blib/lib/WWW/Spyder.pm
Criterion Covered Total %
condition 0 128 0.0


and 2 conditions

line l !l condition
184 0 0 carp("$url failed GET!") and next
193 0 0 carp("$url has no HEAD!") and next
203 0 0 carp("$url has no discernible BASE!") and next
228 0 0 carp("$url doesn't look like TEXT or HTML!") and next
249 0 0 carp("Failed to fetch $url.") and next
336 0 0 push @{$$self{$baseQ};}, $enQ and next
404 0 0 $$self{'_bytes_GOT'} += $bytes and return $bytes
462 0 0 carp("Not setting verbosity! Must be integer b/t 1 & 6!\n") and return

and 3 conditions

line !l l&&!r l&&r condition
81 0 0 0 $arg and exists $$self{$attribute}
102 0 0 0 @terms and not exists $$self{'_terms'}
190 0 0 0 $$self{'_courtesy_Queue'} and @{$$self{'_courtesy_Queue'};} > 100
242 0 0 0 $title and $$self{'report_broken_links'}
260 0 0 0 $$self{'_page_Memory'}{$digest}++ and carp("Seen this page's content before: $url")
287 0 0 0 $$self{'_text'} and ${$$self{'_text'};}
317 0 0 0 @urls and $VERBOSITY > 5
320 0 0 0 $self->terms and not @urls
560 0 0 0 $$attr{'src'} and $$self{'image_checking'}
0 0 0 $$attr{'src'} and $$self{'image_checking'} and not $$attr{'href'}
567 0 0 0 $$self{'_src'} and $$self{'image_checking'}
606 0 0 0 $$self{'_src'} and $$self{'image_checking'}
659 0 0 0 ref $arg and ref $$arg{'exit_on'} eq 'HASH'
722 0 0 0 $$self{$Q} and @{$$self{$Q};} > 0
830 0 0 0 $name and length $name > 512
885 0 0 0 not $arg and exists $$self{$attribute}

or 2 conditions

line l !l condition
142 0 0 shift() || undef
163 0 0 $self->_choose_courteously || $self->_just_choose || (return)
294 0 0 $description || ''
561 0 0 $$self{'_alt'} || '+'
600 0 0 $$self{'_alt'} || '+'

or 3 conditions

line l !l&&r !l&&!r condition
35 0 0 0 ref $caller || $caller
90 0 0 0 $seed ||= $arg{'seed'}
159 0 0 0 $$self{'report_broken_links'} or $$self{'image_checking'}
160 0 0 0 $self->_choose_courteously || $self->_just_choose
544 0 0 0 $tag =~ /^(?:a|img)$/ or $$self{'image_checking'}
553 0 0 0 $$self{'_src'} ||= $$attr{'src'}
554 0 0 0 $$self{'_href'} ||= $$attr{'href'}
555 0 0 0 $$self{'_alt'} ||= $$attr{'alt'}
561 0 0 0 $$self{'_linkText'} ||= $$self{'_alt'} || '+'
594 0 0 0 $tag eq 'a' or $$self{'_linkSwitch'}
0 0 0 $tag eq 'a' or $$self{'_linkSwitch'} or $tag eq 'img'
597 0 0 0 $tag eq 'a' or $$self{'_linkSwitch'}
600 0 0 0 $$self{'_linkText'} ||= $$self{'_alt'} || '+'
645 0 0 0 $self->cookie_file || "$ENV{'HOME'}/spyderCookies"
824 0 0 0 ref $caller || $caller
866 0 0 0 ref $caller || $caller
954 0 0 0 shift() || croak('Must provide search engine! ' . join(', ', sort(keys %engine_url)) . "\n")
957 0 0 0 shift() || croak("Must provide query terms!\n")