Branch Coverage

blib/lib/WWW/Search/Ebay.pm
Criterion Covered Total %
branch 13 218 5.9


line true false branch
147 2 11 if $rhOptsArg->{'search_parse_debug'}
167 11 2 unless (defined $self->{'_options'})
202 13 0 if (defined $rhOptsArg)
208 15 3 if (WWW::Search::generic_option($key)) { }
211 14 1 if defined $rhOptsArg->{$key}
217 2 1 if defined $rhOptsArg->{$key}
239 1 10 if 0 < $self->{'_debug'}
267 0 0 if (25 < $self->{'_debug'})
276 0 0 if ($sTitle =~ /$qrTitle/) { }
288 0 0 if ($sPageDate eq '') { }
300 0 0 if ($s =~ /The official eBay Time is now:(.+?(P[SD]T))\s*Pacific\s/i)
340 0 0 if $iBids ne '1'
350 0 0 $hit->bid_count ? :
370 0 0 unless ref $oTD
372 0 0 unless ref $oA
373 0 0 if (1 < $self->{'_debug'})
379 0 0 if ($sURL =~ /sibeleafcat=(\d+)/)
391 0 0 unless ref $oTDprice
393 0 0 if (1 < $self->{'_debug'})
397 0 0 if ($oTDprice->attr('class') =~ /\bebcBid\b/)
407 0 0 unless ($oTDprice->attr('class') =~ /\b(ebcPr|prices|prc)\b/)
415 0 0 if ($oTDprice->look_down('_tag', 'span', 'class', 'ebSold') or $oTDprice->look_down('_tag', 'span', 'class', 'bold bidsold'))
426 0 0 if (my $oChild = $oTDprice->look_down('_tag', 'div', 'itemprop', 'price'))
433 0 0 if 1 < $self->{'_debug'}
445 0 0 if ($iPrice =~ s/FREE\s+SHIPPING//i)
459 0 0 if (ref $oTDbids)
461 0 0 if (my $oChild = $oTDbids->look_down('_tag', 'div', 'class', 'bids'))
468 0 0 if (1 < $self->{'_debug'})
472 0 0 unless ($oTDbids->attr('class') =~ /\b(ebcBid|bids)\b/)
480 0 0 if $oTDbids->as_text =~ /SOLD/i
481 0 0 if $oTDbids->as_text =~ /(\d+)/
483 0 0 if ($iBids =~ /\A$W*-$W*\Z/ or $iBids =~ /\A$W*\Z/)
494 0 0 if ($iBids =~ /NO/i)
509 0 0 if ($oTD->attr('class') =~ /\bebcCty\b/)
516 0 0 if (my $oChild = $oTD->look_down('_tag', 'span', 'class', 'ship'))
527 0 0 if 1 < $self->{'_debug'}
528 0 0 if ($iPrice =~ /UNKNOWN/i)
533 0 0 if ($iPrice =~ /FREE/i)
537 0 0 unless $iPrice =~ /\d/
558 0 0 if (ref $oTDdate) { }
567 0 0 if 1 < $self->{'_debug'}
569 0 0 if ($s =~ /\bTIMEMS="(\d+)"/i)
573 0 0 if 1 < $self->{'_debug'}
579 0 0 if (ref $oTDdate)
582 0 0 unless ($sClass =~ /\b(col3|ebcTim|ti?me)\b/)
591 0 0 if 1 < $self->{'_debug'}
592 0 0 if ($sDateTemp =~ /---/)
608 0 0 if 1 < $self->{'_debug'}
609 0 0 if 1 < $self->{'_debug'}
611 0 0 if 1 < $self->{'_debug'}
613 0 0 if 1 < $self->{'_debug'}
637 0 0 unless my $oSR = shift()
641 0 0 $oSR->sold ? :
649 0 0 if 1 < $self->{'_debug'}
650 0 0 if 1 < $self->{'_debug'}
651 0 0 if (Date_Cmp($dateEnd, $dateNow) < 0)
761 0 0 if (ref $oDiv)
778 0 0 if 1 < $self->{'_debug'}
782 0 0 if ($sTitle =~ /$qrTitle/)
808 0 0 if (ref $oDIV)
811 0 0 if ($sText =~ /0 results found for / and $sText =~ / so we searched for / || $sText =~ / so we removed keywords /)
830 0 0 if (ref $oLI)
832 0 0 if ($oLI->as_text =~ / keyword has been replaced /)
843 0 0 if (ref $oP)
846 0 0 if ($s =~ /0 results found in the/ and $s =~ /so we searched in all categories/)
856 0 0 if (scalar @aoResultCountTagset < 1)
865 0 0 if 1 < $self->{'_debug'}
866 0 0 if ($oFONT->as_text =~ /$qr/)
869 0 0 if 1 < $self->{'_debug'}
877 0 0 if ($self->approximate_result_count < 1)
887 0 0 if ref $oUL
893 0 0 if (ref $oDiv)
902 0 0 unless (@aoTD)
904 0 0 if $self->{'_debug'}
913 0 0 unless ref $oTDtitle
915 0 0 if 1 < $self->{'_debug'}
918 0 0 unless ref $oA
921 0 0 if $sTitle eq ''
922 0 0 if 1 < $self->{'_debug'}
925 0 0 unless $oURI =~ /$qrItemNum/
927 0 0 if 1 < $self->{'_debug'}
929 0 0 if $oURI =~ /QQcategoryZ(\d+)QQ/
930 0 0 if ($oURI->as_string =~ /QQitemZ(\d+)QQ/)
949 0 0 if 1 < $self->{'_debug'}
953 0 0 unless ref $oTDsib
956 0 0 if ($sColumn eq '')
958 0 0 if 1 < $self->{'_debug'}
960 0 0 if 1 < $self->{'_debug'}
961 0 0 if ($sColumn =~ /price/)
963 0 0 unless $self->_parse_price($oTDsib, $hit)
965 0 0 if ($sColumn =~ /bids/ or $sColumn =~ /format/)
970 0 0 if ($sColumn =~ /shipping/)
972 0 0 unless $self->_parse_shipping($oTDsib, $hit)
974 0 0 if ($sColumn =~ /end/)
976 0 0 unless $self->_parse_enddate($oTDsib, $hit)
978 0 0 if ($sColumn =~ /time/)
980 0 0 unless $self->_parse_enddate($oTDsib, $hit)
982 0 0 if ($sColumn =~ /country/)
988 0 0 if ($sColumn =~ /extras/)
990 0 0 if ($iCategory < 0)
1003 0 0 if (defined($enddate = $hit->end_date) and defined($iBids = $hit->bid_count) and 0 < $iBids and Date_Cmp($enddate, 'now') < 0)
1016 0 0 if 1 < $self->{'_debug'}
1021 0 0 if ($self->approximate_result_count <= $iHits)
1092 0 0 unless ref $oLI
1093 0 0 if ($oLI->parent->same_as($oUL))
1096 0 0 unless ref $oA
1098 0 0 unless ref $oSPAN
1112 0 0 unless ref $oUL
1113 0 0 if ($oUL->parent->same_as($oLI))