| line |
true |
false |
branch |
|
75
|
1 |
1 |
unless ($WWW::Search::Test::websearch) |
|
97
|
1 |
0 |
if $WWW::Search::Test::websearch |
|
101
|
0 |
1 |
unless $WWW::Search::Test::websearch =~ /WebSearch/ |
|
151
|
0 |
0 |
if ($new_mode) |
|
168
|
0 |
0 |
if $self->{'engines'} eq ',,' |
|
186
|
0 |
0 |
unless $self->relevant_test($sSE) |
|
191
|
0 |
0 |
unless ($code ne '') |
|
205
|
0 |
0 |
if $@ |
|
237
|
0 |
0 |
if $self->{'debug'} |
|
242
|
0 |
0 |
if ($test_method == $WWW::Search::Test::TEST_GREATER_THAN) |
|
247
|
0 |
0 |
if (0 < $high_end) |
|
251
|
0 |
0 |
unless $self->relevant_test($sSE) |
|
253
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_INTERNAL and $query =~ /$WWW::Search::Test::bogus_query/) |
|
263
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE) |
|
269
|
0 |
0 |
if $afile =~ /^$file/ |
|
276
|
0 |
0 |
if ($d eq '') |
|
284
|
0 |
0 |
if $self->{'debug'} |
|
295
|
0 |
0 |
$self->{'debug'} ? : |
|
297
|
0 |
0 |
if $self->{'verbose'} or $self->{'debug'} |
|
298
|
0 |
0 |
unless open TRIALSTREAM, "$cmd|" |
|
299
|
0 |
0 |
unless open TRIALFILE, ">$file.trial" |
|
300
|
0 |
0 |
if $self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE |
|
306
|
0 |
0 |
if $self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE |
|
310
|
0 |
0 |
if ($self->{'mode'} eq $WWW::Search::Test::MODE_UPDATE) |
|
313
|
0 |
0 |
if (open TS, ">$file.README") |
|
324
|
0 |
0 |
if (-f "$file.out") { } |
|
327
|
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) { } |
|
329
|
0 |
0 |
if ($iActual <= $low_end) |
|
337
|
0 |
0 |
unless defined $low_end |
|
338
|
0 |
0 |
unless defined $high_end |
|
339
|
0 |
0 |
unless 0 < $high_end |
|
340
|
0 |
0 |
if ($iActual < $low_end) |
|
345
|
0 |
0 |
if ($high_end < $iActual) |
|
353
|
0 |
0 |
&diff("$file.out", "$file.trial") ? : |
|
359
|
0 |
0 |
if ($iActual != $iExpected) |
|
371
|
0 |
0 |
if ($e == 0) { } |
|
|
0 |
0 |
elsif ($e == 1) { } |
|
405
|
0 |
0 |
unless $self->relevant_test($engine) |
|
425
|
0 |
0 |
unless $self->relevant_test($engine) |
|
447
|
0 |
0 |
unless $self->relevant_test($engine) |
|
469
|
0 |
0 |
unless $self->relevant_test($engine) |
|
504
|
0 |
0 |
unless open WC, shift() |
|
509
|
0 |
0 |
if /Nothing found./ |
|
526
|
0 |
0 |
unless open DIFF1, shift() |
|
527
|
0 |
0 |
unless open DIFF2, shift() |
|
534
|
0 |
0 |
unless (defined $s2) |
|
541
|
0 |
0 |
if ($s1 ne $s2) |
|
573
|
0 |
0 |
ref $WWW::Search::Test::oSearch ? : |
|
657
|
0 |
0 |
unless &Test::More::is(scalar $WWW::Search::Test::oSearch->response->code, 200, 'got valid HTTP response') |
|
658
|
0 |
0 |
if (defined $iMin) |
|
660
|
0 |
0 |
unless &Test::More::cmp_ok($iMin, '<=', $iCount, "lower-bound num-hits for query=$sQuery") |
|
662
|
0 |
0 |
if ($iApprox) |
|
664
|
0 |
0 |
unless &Test::More::cmp_ok($iMin, '<=', scalar $WWW::Search::Test::oSearch->approximate_result_count, 'lower-bound approximate_result_count') |
|
668
|
0 |
0 |
if (defined $iMax) |
|
670
|
0 |
0 |
unless &Test::More::cmp_ok($iCount, '<=', $iMax, "upper-bound num-hits for query=$sQuery") |
|
672
|
0 |
0 |
if ($iApprox) |
|
674
|
0 |
0 |
unless &Test::More::cmp_ok(scalar $WWW::Search::Test::oSearch->approximate_result_count, '<=', $iMax, 'upper-bound approximate_result_count') |
|
679
|
0 |
0 |
if ($iAnyFailure and $WWW::Search::Test::sSaveOnError ne '') |
|
712
|
0 |
0 |
if defined $iMin and defined $iMax and $iMax < $iMin |
|
718
|
0 |
0 |
if (not defined $iMax) { } |
|
732
|
0 |
0 |
unless $iDoNotEscape |
|
734
|
0 |
0 |
if ($sType eq 'gui') { } |
|
744
|
0 |
0 |
if ($iPrintResults) |
|
752
|
0 |
0 |
if defined $oResult->$sField |
|
765
|
0 |
0 |
if (not defined $iMax) { } |
|
|
0 |
0 |
elsif (not defined $iMin) { } |
|
777
|
0 |
0 |
unless defined $iMax |
|
778
|
0 |
0 |
if ($iResults < $iMin or $iMax < $iResults) |
|
830
|
0 |
0 |
if ($sCmp eq 'like') { } |
|
|
0 |
0 |
elsif ($sCmp eq 'unlike') { } |
|
|
0 |
0 |
elsif ($sCmp eq 'date') { } |
|
865
|
0 |
0 |
unless (eval $sCodeAll) |
|
871
|
0 |
0 |
if ($iV < $iVall) |
|
891
|
0 |
0 |
if ($iAnyFailed) |
|
899
|
0 |
0 |
if ($WWW::Search::Test::sSaveOnError ne '') |