Branch Coverage

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


line true false branch
82 0 0 if ref $class
112 0 0 if (@_)
134 0 0 unless (exists $hssPasswords{$sUserID})
143 0 0 $sPage =~ /If you are seeing this page,/i ? :
182 0 0 unless (defined $ref and $ref =~ /HTTP::/)
192 0 0 if ($sName ne '')
230 0 0 unless ($self->response->is_success)
233 0 0 if ($sName ne '' and open ERR, ">$fname1")
245 0 0 if ($sPage =~ /"SignInForm"/) { }
0 0 elsif ($sPage =~ /"AdultLogin"/ or $sPage =~ /Terms of Use: Mature Audiences Category/) { }
262 0 0 unless (ref $oForm)
300 0 0 unless (ref $oForm)
356 0 0 unless (shift())->{'_error'}
385 0 0 if ($self->{'_selling_page'} ne '')
413 0 0 if $self->{'raoWatching'}
416 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
419 0 0 unless close PAGE
427 0 0 unless (ref $oTree)
440 0 0 unless ref $oTDtitle
443 0 0 unless ref $oA
450 0 0 unless ref $oTRparent
454 0 0 unless ref $oTRaunt
466 0 0 unless ref $oTD
469 0 0 if ($sClass =~ /price/i)
474 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) { }
482 0 0 if $s eq '--'
508 0 0 unless my $oWSE = 'WWW::Search'->new('Ebay')
531 0 0 if $self->{'raoSelling'}
534 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
537 0 0 unless close PAGE
545 0 0 unless (ref $oTree)
561 0 0 if (ref $oAselling) { }
565 0 0 unless ref $oAselling
576 0 0 if ($iCount <= 0)
583 0 0 unless (ref $oTable)
597 0 0 unless ref $oTR
605 0 0 if defined $_[0]->attr('href')
610 0 0 unless ref $oA
612 0 0 unless defined $oA->attr('href')
614 0 0 unless $sURL =~ /ViewItem/
615 0 0 unless $sURL =~ /item=(\d+)/
627 0 0 unless (ref $oTR)
638 0 0 unless (ref $oTD)
643 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') { }
648 0 0 unless ($s =~ /\d/)
660 0 0 if $s =~ m[n/a]
709 0 0 if $self->{'raoSold'}
712 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
715 0 0 unless close PAGE
721 0 0 if (ref $self->{'_selling_tree'}) { }
729 0 0 unless (ref $oTree)
745 0 0 if (ref $oA) { }
751 0 0 if ($s =~ /\(\s*(\d+)\s+ITEM/i)
762 0 0 if $iCount < 0
766 0 0 unless (ref $oTable)
779 0 0 unless ref $oTR
790 0 0 unless ref $oA
806 0 0 unless (ref $oTD)
826 0 0 if ($s eq '--') { }
833 0 0 unless ($s =~ /\d/)
846 0 0 unless (ref $oTR)
852 0 0 unless ref $oA
858 0 0 unless $sURL =~ /ViewItem/
859 0 0 unless $sURL =~ /item=(\d+)/
883 0 0 if $self->{'raoUnsold'}
886 0 0 if ($sFname ne '' and open PAGE, '>', $sFname)
889 0 0 unless close PAGE
897 0 0 unless (ref $oTree)
912 0 0 if (ref $oAunsold)
920 0 0 if ($iCount <= 0)
925 0 0 unless (ref $oTable)
936 0 0 if (ref $oTable) { }
938 0 0 if $oTable->tag eq 'table'
946 0 0 unless (ref $oTable)
957 0 0 unless ref $oTR
963 0 0 unless ref $oA
965 0 0 unless defined $oA->attr('href')
966 0 0 unless $oA->attr('href') =~ /ViewItem/
974 0 0 unless ref $oTD
976 0 0 unless ref $oTD
1017 0 0 if ($sPage =~ /\shref="mailto:(.+?)"/)
1035 0 0 if ($arg)
1059 0 0 unless (ref $self->{'_user_agent'})
1062 0 0 unless (ref $ua)