Branch Coverage

blib/lib/WWW/Search/Ebay.pm
Criterion Covered Total %
branch 0 214 0.0


line true false branch
149 0 0 if $rhOptsArg->{'search_parse_debug'}
169 0 0 unless (defined $self->{'_options'})
204 0 0 if (defined $rhOptsArg)
210 0 0 if (WWW::Search::generic_option($key)) { }
213 0 0 if defined $rhOptsArg->{$key}
219 0 0 if defined $rhOptsArg->{$key}
241 0 0 if 0 < $self->{'_debug'}
269 0 0 if (25 < $self->{'_debug'})
278 0 0 if ($sTitle =~ /$qrTitle/) { }
290 0 0 if ($sPageDate eq '') { }
302 0 0 if ($s =~ /The official eBay Time is now:(.+?(P[SD]T))\s*Pacific\s/i)
342 0 0 if $iBids ne '1'
352 0 0 $hit->bid_count ? :
372 0 0 unless ref $oTD
374 0 0 unless ref $oA
375 0 0 if (1 < $self->{'_debug'})
381 0 0 if ($sURL =~ /sibeleafcat=(\d+)/)
393 0 0 unless ref $oTDprice
395 0 0 if (1 < $self->{'_debug'})
399 0 0 if ($oTDprice->attr('class') =~ /\bebcBid\b/)
409 0 0 unless ($oTDprice->attr('class') =~ /\b(ebcPr|prices|prc)\b/)
417 0 0 if ($oTDprice->look_down('_tag', 'span', 'class', 'ebSold') or $oTDprice->look_down('_tag', 'span', 'class', 'bold bidsold'))
428 0 0 if (my $oChild = $oTDprice->look_down('_tag', 'div', 'itemprop', 'price'))
435 0 0 if 1 < $self->{'_debug'}
447 0 0 if ($iPrice =~ s/FREE\s+SHIPPING//i)
461 0 0 if (ref $oTDbids)
463 0 0 if (my $oChild = $oTDbids->look_down('_tag', 'div', 'class', 'bids'))
470 0 0 if (1 < $self->{'_debug'})
474 0 0 unless ($oTDbids->attr('class') =~ /\b(ebcBid|bids)\b/)
482 0 0 if $oTDbids->as_text =~ /SOLD/i
483 0 0 if $oTDbids->as_text =~ /(\d+)/
485 0 0 if ($iBids =~ /\A$W*-$W*\Z/ or $iBids =~ /\A$W*\Z/)
496 0 0 if ($iBids =~ /NO/i)
511 0 0 if ($oTD->attr('class') =~ /\bebcCty\b/)
518 0 0 if (my $oChild = $oTD->look_down('_tag', 'span', 'class', 'ship'))
529 0 0 if 1 < $self->{'_debug'}
530 0 0 if ($iPrice =~ /FREE/i)
534 0 0 unless $iPrice =~ /\d/
555 0 0 if (ref $oTDdate) { }
564 0 0 if 1 < $self->{'_debug'}
566 0 0 if ($s =~ /\bTIMEMS="(\d+)"/i)
570 0 0 if 1 < $self->{'_debug'}
576 0 0 if (ref $oTDdate)
579 0 0 unless ($sClass =~ /\b(col3|ebcTim|ti?me)\b/)
588 0 0 if 1 < $self->{'_debug'}
589 0 0 if ($sDateTemp =~ /---/)
605 0 0 if 1 < $self->{'_debug'}
606 0 0 if 1 < $self->{'_debug'}
608 0 0 if 1 < $self->{'_debug'}
610 0 0 if 1 < $self->{'_debug'}
634 0 0 unless my $oSR = shift()
638 0 0 $oSR->sold ? :
646 0 0 if 1 < $self->{'_debug'}
647 0 0 if 1 < $self->{'_debug'}
648 0 0 if (Date_Cmp($dateEnd, $dateNow) < 0)
758 0 0 if (ref $oDiv)
775 0 0 if 1 < $self->{'_debug'}
779 0 0 if ($sTitle =~ /$qrTitle/)
805 0 0 if (ref $oDIV)
808 0 0 if ($sText =~ /0 results found for / and $sText =~ / so we searched for / || $sText =~ / so we removed keywords /)
827 0 0 if (ref $oLI)
829 0 0 if ($oLI->as_text =~ / keyword has been replaced /)
840 0 0 if (ref $oP)
843 0 0 if ($s =~ /0 results found in the/ and $s =~ /so we searched in all categories/)
853 0 0 if (scalar @aoResultCountTagset < 1)
862 0 0 if 1 < $self->{'_debug'}
863 0 0 if ($oFONT->as_text =~ /$qr/)
866 0 0 if 1 < $self->{'_debug'}
874 0 0 if ($self->approximate_result_count < 1)
884 0 0 if ref $oUL
890 0 0 if (ref $oDiv)
899 0 0 unless (@aoTD)
901 0 0 if $self->{'_debug'}
910 0 0 unless ref $oTDtitle
912 0 0 if 1 < $self->{'_debug'}
915 0 0 unless ref $oA
918 0 0 if $sTitle eq ''
919 0 0 if 1 < $self->{'_debug'}
922 0 0 unless $oURI =~ /$qrItemNum/
924 0 0 if 1 < $self->{'_debug'}
926 0 0 if $oURI =~ /QQcategoryZ(\d+)QQ/
927 0 0 if ($oURI->as_string =~ /QQitemZ(\d+)QQ/)
946 0 0 if 1 < $self->{'_debug'}
950 0 0 unless ref $oTDsib
953 0 0 if ($sColumn eq '')
955 0 0 if 1 < $self->{'_debug'}
957 0 0 if 1 < $self->{'_debug'}
958 0 0 if ($sColumn =~ /price/)
960 0 0 unless $self->_parse_price($oTDsib, $hit)
962 0 0 if ($sColumn =~ /bids/ or $sColumn =~ /format/)
967 0 0 if ($sColumn =~ /shipping/)
969 0 0 unless $self->_parse_shipping($oTDsib, $hit)
971 0 0 if ($sColumn =~ /end/)
973 0 0 unless $self->_parse_enddate($oTDsib, $hit)
975 0 0 if ($sColumn =~ /time/)
977 0 0 unless $self->_parse_enddate($oTDsib, $hit)
979 0 0 if ($sColumn =~ /country/)
985 0 0 if ($sColumn =~ /extras/)
987 0 0 if ($iCategory < 0)
1000 0 0 if (defined($enddate = $hit->end_date) and defined($iBids = $hit->bid_count) and 0 < $iBids and Date_Cmp($enddate, 'now') < 0)
1013 0 0 if 1 < $self->{'_debug'}
1080 0 0 unless ref $oLI
1081 0 0 if ($oLI->parent->same_as($oUL))
1084 0 0 unless ref $oA
1086 0 0 unless ref $oSPAN
1100 0 0 unless ref $oUL
1101 0 0 if ($oUL->parent->same_as($oLI))