line |
true |
false |
branch |
72
|
1 |
1 |
unless ($WWW::Search::Test::websearch) |
94
|
1 |
0 |
if $WWW::Search::Test::websearch |
98
|
0 |
1 |
unless $WWW::Search::Test::websearch =~ /WebSearch/ |
148
|
0 |
0 |
if ($new_mode) |
165
|
0 |
0 |
if $self->{'engines'} eq ',,' |
183
|
0 |
0 |
unless $self->relevant_test($sSE) |
188
|
0 |
0 |
unless ($code ne '') |
202
|
0 |
0 |
if $@ |
234
|
0 |
0 |
if $self->{'debug'} |
239
|
0 |
0 |
if ($test_method == $WWW::Search::Test::TEST_GREATER_THAN) |
244
|
0 |
0 |
if (0 < $high_end) |
248
|
0 |
0 |
unless $self->relevant_test($sSE) |
250
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_INTERNAL and $query =~ /$WWW::Search::Test::bogus_query/) |
260
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE) |
266
|
0 |
0 |
if $afile =~ /^$file/ |
273
|
0 |
0 |
if ($d eq '') |
281
|
0 |
0 |
if $self->{'debug'} |
292
|
0 |
0 |
$self->{'debug'} ? : |
294
|
0 |
0 |
if $self->{'verbose'} or $self->{'debug'} |
295
|
0 |
0 |
unless open TRIALSTREAM, "$cmd|" |
296
|
0 |
0 |
unless open TRIALFILE, ">$file.trial" |
297
|
0 |
0 |
if $self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE |
303
|
0 |
0 |
if $self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE |
307
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE) |
310
|
0 |
0 |
if (open TS, ">$file.README") |
321
|
0 |
0 |
if (-f "$file.out") { } |
324
|
0 |
0 |
if ($test_method == $WWW::Search::Test::TEST_GREATER_THAN) { } |
|
0 |
0 |
elsif ($test_method == $WWW::Search::Test::TEST_RANGE) { } |
|
0 |
0 |
elsif ($test_method == $WWW::Search::Test::TEST_EXACTLY) { } |
|
0 |
0 |
elsif ($test_method == $WWW::Search::Test::TEST_BY_COUNTING) { } |
326
|
0 |
0 |
if ($iActual <= $low_end) |
334
|
0 |
0 |
unless defined $low_end |
335
|
0 |
0 |
unless defined $high_end |
336
|
0 |
0 |
unless 0 < $high_end |
337
|
0 |
0 |
if ($iActual < $low_end) |
342
|
0 |
0 |
if ($high_end < $iActual) |
350
|
0 |
0 |
&diff("$file.out", "$file.trial") ? : |
356
|
0 |
0 |
if ($iActual != $iExpected) |
368
|
0 |
0 |
if ($e == 0) { } |
|
0 |
0 |
elsif ($e == 1) { } |
402
|
0 |
0 |
unless $self->relevant_test($engine) |
422
|
0 |
0 |
unless $self->relevant_test($engine) |
444
|
0 |
0 |
unless $self->relevant_test($engine) |
466
|
0 |
0 |
unless $self->relevant_test($engine) |
501
|
0 |
0 |
unless open WC, shift() |
506
|
0 |
0 |
if /Nothing found./ |
523
|
0 |
0 |
unless open DIFF1, shift() |
524
|
0 |
0 |
unless open DIFF2, shift() |
531
|
0 |
0 |
unless (defined $s2) |
538
|
0 |
0 |
if ($s1 ne $s2) |
570
|
0 |
0 |
ref $WWW::Search::Test::oSearch ? : |
654
|
0 |
0 |
unless &Test::More::is(scalar $WWW::Search::Test::oSearch->response->code, 200, 'got valid HTTP response') |
655
|
0 |
0 |
if (defined $iMin) |
657
|
0 |
0 |
unless &Test::More::cmp_ok($iMin, '<=', $iCount, "lower-bound num-hits for query=$sQuery") |
659
|
0 |
0 |
if ($iApprox) |
661
|
0 |
0 |
unless &Test::More::isnt(scalar $WWW::Search::Test::oSearch->approximate_result_count, undef, 'approximate_result_count is defined') |
663
|
0 |
0 |
unless &Test::More::cmp_ok($iMin, '<=', scalar $WWW::Search::Test::oSearch->approximate_result_count, 'lower-bound approximate_result_count') |
667
|
0 |
0 |
if (defined $iMax) |
669
|
0 |
0 |
unless &Test::More::cmp_ok($iCount, '<=', $iMax, "upper-bound num-hits for query=$sQuery") |
671
|
0 |
0 |
if ($iApprox) |
673
|
0 |
0 |
unless &Test::More::isnt(scalar $WWW::Search::Test::oSearch->approximate_result_count, undef, 'approximate_result_count is defined') |
675
|
0 |
0 |
unless &Test::More::cmp_ok(scalar $WWW::Search::Test::oSearch->approximate_result_count, '<=', $iMax, 'upper-bound approximate_result_count') |
680
|
0 |
0 |
if ($iAnyFailure and $WWW::Search::Test::sSaveOnError ne '') |
713
|
0 |
0 |
if defined $iMin and defined $iMax and $iMax < $iMin |
719
|
0 |
0 |
if (not defined $iMax) { } |
733
|
0 |
0 |
unless $iDoNotEscape |
735
|
0 |
0 |
if ($sType eq 'gui') { } |
745
|
0 |
0 |
if ($iPrintResults) |
753
|
0 |
0 |
if defined $oResult->$sField |
766
|
0 |
0 |
if (not defined $iMax) { } |
|
0 |
0 |
elsif (not defined $iMin) { } |
778
|
0 |
0 |
unless defined $iMax |
779
|
0 |
0 |
if ($iResults < $iMin or $iMax < $iResults) |
831
|
0 |
0 |
if ($sCmp eq 'like') { } |
|
0 |
0 |
elsif ($sCmp eq 'unlike') { } |
|
0 |
0 |
elsif ($sCmp eq 'date') { } |
866
|
0 |
0 |
unless (eval $sCodeAll) |
872
|
0 |
0 |
if ($iV < $iVall) |
892
|
0 |
0 |
if ($iAnyFailed) |