Branch Coverage

blib/lib/Yahoo/Search/Request.pm
Criterion Covered Total %
branch 10 58 17.2


line true false branch
16 0 0 unless (defined $have_XML_Simple)
18 0 0 if (eval { do { require XML::Simple; 1 } }) { }
99 3 0 unless ($$Request{'_Uri'})
199 0 3 if (my $callback = $Request->SearchEngine->Default('PreRequestCallback'))
201 0 0 unless (&$callback($Request))
209 0 3 if $$Request{'Debug'} =~ /url/x
224 3 0 if (length $Yahoo::Search::RecentRequestUrl < 8180) { }
233 0 3 unless ($response)
242 0 3 if $$Request{'Debug'} =~ /xml/x
243 0 3 if ($$Request{'Debug'} =~ /XMLtmp/)
253 3 0 unless ($response->is_success)
255 0 3 if ($xml and $xml =~ m[(.+?)]s) { }
3 0 elsif ($response->status_line) { }
265 0 0 unless ($xml)
282 0 0 if ($Yahoo::Search::UseXmlSimple) { }
284 0 0 unless (_have_XML_Simple())
290 0 0 unless ($ResultHash)
300 0 0 unless ($ResultHash)
307 0 0 unless (_have_XML_Simple())
316 0 0 unless ($ResultHash)
335 0 0 if (not exists $$ResultHash{'Result'}) { }
0 0 elsif (ref $$ResultHash{'Result'} ne 'ARRAY') { }
345 0 0 if ($SimpleResultSpace{$Request->SearchSpace})
358 0 0 @Results ? :
371 0 0 if ($$Request{'Debug'} =~ /hash/x)
409 0 0 if ($Request->SearchSpace eq 'Related') { }
419 0 0 if (my $new = $Request->RelatedRequest) { }
447 0 0 if ($Request->SearchSpace eq 'Spell') { }
457 0 0 if (my $new = $Request->SpellRequest) { }