Branch Coverage

blib/lib/Yahoo/Search/Result.pm
Criterion Covered Total %
branch 0 152 0.0


line true false branch
156 0 0 if (not defined $Text) { }
0 0 elsif ($AsHtml) { }
179 0 0 if (not $Url) { }
0 0 elsif (not $Attrib) { }
0 0 elsif (not $Url =~ /\x22/) { }
0 0 elsif (not $Url =~ /\x27/) { }
251 0 0 if ($$Result{'_ResponseOrdinal'} < $#{$$Result{'_Response'}{'Result'};}) { }
257 0 0 unless (defined $AutoContinue)
261 0 0 if ($AutoContinue and my $NextResponse = $$Result{'_Response'}->NextSet) { }
290 0 0 if ($$Result{'_ResponseOrdinal'} == 0) { }
454 0 0 if ($SearchSpace eq 'Doc')
460 0 0 if ($summary)
466 0 0 if ($SearchSpace eq 'Video')
471 0 0 if (my $img = $Result->ThumbImg) { }
480 0 0 if (my $duration = $Result->Duration)
484 0 0 if (my $width = $Result->Width and my $height = $Result->Height)
488 0 0 if (my $size = $Result->Bytes)
492 0 0 if (my $chan = $Result->Channels)
496 0 0 if (my $HREF = $Result->HostUrl('href'))
499 0 0 if (@extra)
503 0 0 if ($summary)
509 0 0 if ($SearchSpace eq 'Image')
514 0 0 if (my $img = $Result->ThumbImg) { }
523 0 0 if (my $size = $Result->Bytes)
526 0 0 if (my $width = $Result->Width and my $height = $Result->Height)
529 0 0 if (my $HREF = $Result->HostUrl('HREF'))
532 0 0 if (@extra)
536 0 0 if ($summary)
542 0 0 if ($SearchSpace eq 'News')
547 0 0 if (my $img = $Result->ThumbImg) { }
554 0 0 if ($src_name and $src_href)
557 0 0 if (my $when = $Result->PublishWhen)
561 0 0 if ($summary)
567 0 0 if ($SearchSpace eq 'Local')
571 0 0 if (my $addr = join(', ', grep({$_;} $Result->Address, $Result->City . ' ' . $Result->State)))
576 0 0 if (my $phone = $Result->Phone)
579 0 0 if (my $HREF = $Result->MapUrl('href'))
582 0 0 if (@extra)
586 0 0 if ($summary)
592 0 0 if ($SearchSpace eq 'Spell')
598 0 0 if ($SearchSpace eq 'Related')
604 0 0 if ($SearchSpace eq 'Terms')
634 0 0 if (defined(my $val = $Result->$item))
759 0 0 if (my $HREF = $Result->ClickUrl('href') and my $title = $Result->Title(1)) { }
813 0 0 $$Result{'Cache'} ? :
819 0 0 $$Result{'Cache'} ? :
838 0 0 defined $$Result{'ModificationDate'} ? :
858 0 0 defined $$Result{'Width'} ? :
864 0 0 defined $$Result{'Height'} ? :
891 0 0 $$Result{'Thumbnail'} ? :
897 0 0 $$Result{'Thumbnail'} ? :
903 0 0 $$Result{'Thumbnail'} ? :
928 0 0 if ($SRC) { }
957 0 0 if ($HREF and $img) { }
1014 0 0 if (defined $$Result{'MimeType'}) { }
0 0 elsif (defined $$Result{'FileFormat'}) { }
1081 0 0 if (not defined $$Result{'Restrictions'}) { }
1104 0 0 if ($$Result{'FileSize'}) { }
1128 0 0 if ($$Result{'Channels'}) { }
1152 0 0 if ($$Result{'Duration'})
1177 0 0 if (my $sec = $Result->Seconds)
1179 0 0 if ($sec < 60)
1182 0 0 if ($sec < 3600)
1211 0 0 if ($Stream eq 'true') { }
0 0 elsif ($Stream eq 'false') { }
1316 0 0 if (defined $$Result{'PublishDate'}) { }
1328 0 0 unless ($time)
1333 0 0 if ($delta < 43200)
1340 0 0 if ($delta < 432000)
1345 0 0 if ($h == 0) { }
0 0 elsif ($h >= 12) { }
1349 0 0 if ($h > 12)
1356 0 0 if ($delta < 8640000) { }
1430 0 0 defined $$Result{'Distance'} ? :
1436 0 0 defined $$Result{'Distance'} ? :
1458 0 0 defined $$Result{'Rating'} ? :