Branch Coverage

blib/lib/WWW/Ebay/Session.pm
Criterion Covered Total %
branch 0 190 0.0


line true false branch
84 0 0 if ref $class
114 0 0 if (@_)
136 0 0 unless (exists $hssPasswords{$sUserID})
145 0 0 $sPage =~ /If you are seeing this page,/i ? :
184 0 0 unless (defined $ref and $ref =~ /HTTP::/)
194 0 0 if ($sName ne '')
232 0 0 unless ($self->response->is_success)
235 0 0 if ($sName ne '' and open ERR, ">$fname1")
247 0 0 if ($sPage =~ /"SignInForm"/) { }
0 0 elsif ($sPage =~ /"AdultLogin"/ or $sPage =~ /Terms of Use: Mature Audiences Category/) { }
264 0 0 unless (ref $oForm)
302 0 0 unless (ref $oForm)
358 0 0 unless (shift())->{'_error'}
387 0 0 if ($self->{'_selling_page'} ne '')
415 0 0 if $self->{'raoWatching'}
418 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
421 0 0 unless close PAGE
429 0 0 unless (ref $oTree)
442 0 0 unless ref $oTDtitle
445 0 0 unless ref $oA
452 0 0 unless ref $oTRparent
456 0 0 unless ref $oTRaunt
468 0 0 unless ref $oTD
471 0 0 if ($sClass =~ /price/i)
476 0 0 if ($sClass =~ /shipping/i) { }
0 0 elsif ($sClass =~ /bids/i) { }
0 0 elsif ($sClass =~ /bidder/i) { }
0 0 elsif ($sClass =~ /seller/i) { }
0 0 elsif ($sClass =~ /watchers/i) { }
0 0 elsif ($sClass =~ /questions/i) { }
0 0 elsif ($sClass =~ /timeleft/i) { }
484 0 0 if $s eq '--'
510 0 0 unless my $oWSE = 'WWW::Search'->new('Ebay')
533 0 0 if $self->{'raoSelling'}
536 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
539 0 0 unless close PAGE
547 0 0 unless (ref $oTree)
563 0 0 if (ref $oAselling) { }
567 0 0 unless ref $oAselling
578 0 0 if ($iCount <= 0)
585 0 0 unless (ref $oTable)
599 0 0 unless ref $oTR
607 0 0 if defined $_[0]->attr('href')
612 0 0 unless ref $oA
614 0 0 unless defined $oA->attr('href')
616 0 0 unless $sURL =~ /ViewItem/
617 0 0 unless $sURL =~ /item=(\d+)/
629 0 0 unless (ref $oTR)
640 0 0 unless (ref $oTD)
645 0 0 if ($sCol eq 'price') { }
0 0 elsif ($sCol eq 'bids') { }
0 0 elsif ($sCol eq 'bidder') { }
0 0 elsif ($sCol eq 'watchers') { }
0 0 elsif ($sCol eq 'questions') { }
0 0 elsif ($sCol eq 'time_left') { }
650 0 0 unless ($s =~ /\d/)
662 0 0 if $s =~ m[n/a]
711 0 0 if $self->{'raoSold'}
714 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
717 0 0 unless close PAGE
723 0 0 if (ref $self->{'_selling_tree'}) { }
731 0 0 unless (ref $oTree)
747 0 0 if (ref $oA) { }
753 0 0 if ($s =~ /\(\s*(\d+)\s+ITEM/i)
764 0 0 if $iCount < 0
768 0 0 unless (ref $oTable)
781 0 0 unless ref $oTR
792 0 0 unless ref $oA
808 0 0 unless (ref $oTD)
828 0 0 if ($s eq '--') { }
835 0 0 unless ($s =~ /\d/)
848 0 0 unless (ref $oTR)
854 0 0 unless ref $oA
860 0 0 unless $sURL =~ /ViewItem/
861 0 0 unless $sURL =~ /item=(\d+)/
885 0 0 if $self->{'raoUnsold'}
888 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
891 0 0 unless close PAGE
899 0 0 unless (ref $oTree)
914 0 0 if (ref $oAunsold)
922 0 0 if ($iCount <= 0)
927 0 0 unless (ref $oTable)
938 0 0 if (ref $oTable) { }
940 0 0 if $oTable->tag eq 'table'
948 0 0 unless (ref $oTable)
959 0 0 unless ref $oTR
965 0 0 unless ref $oA
967 0 0 unless defined $oA->attr('href')
968 0 0 unless $oA->attr('href') =~ /ViewItem/
976 0 0 unless ref $oTD
978 0 0 unless ref $oTD
1019 0 0 if ($sPage =~ /\shref="mailto:(.+?)"/)
1037 0 0 if ($arg)
1061 0 0 unless (ref $self->{'_user_agent'})
1064 0 0 unless (ref $ua)