• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/perl/BerkeleyDB/t/Test/

Lines Matching refs:test

70 Test::Builder - Backend for building test libraries
94 my($test, $name) = @_;
96 $Test->ok($test, $name);
104 building block upon which to write your own test libraries I<which can
116 test.
118 Since you only run one test per program, there is B<one and only one>
137 test might be run multiple times in the same process.
268 Gets/sets the # of tests we expect this test to run and prints out
294 Declares that this test will run an indeterminate # of tests.
353 $Test->ok($test, $name);
355 Your basic test. Pass if $test is true, fail if $test is false. Just
361 my($self, $test, $name) = @_;
363 # $test might contain an object which we don't want to accidentally
365 $test = $test ? 1 : 0;
369 Carp::croak("You tried to run a test without a plan! Gotta have a plan.");
379 You named your test '$name'. You shouldn't use numbers for your test names.
391 unless( $test ) {
396 @$result{ 'ok', 'actual_ok' } = ( 1, $test );
426 unless( $test ) {
429 $self->diag(" $msg test ($file at line $line)\n");
432 return $test ? 1 : 0;
477 my $test = !defined $got && !defined $expect;
479 $self->ok($test, $name);
480 $self->_is_diag($got, 'eq', $expect) unless $test;
481 return $test;
493 my $test = !defined $got && !defined $expect;
495 $self->ok($test, $name);
496 $self->_is_diag($got, '==', $expect) unless $test;
497 return $test;
551 my $test = defined $got || defined $dont_expect;
553 $self->ok($test, $name);
554 $self->_cmp_diag($got, 'ne', $dont_expect) unless $test;
555 return $test;
567 my $test = defined $got || defined $dont_expect;
569 $self->ok($test, $name);
570 $self->_cmp_diag($got, '!=', $dont_expect) unless $test;
571 return $test;
677 my $test = $this =~ /$usable_regex/ ? 1 : 0;
678 $test = !$test if $cmp eq '!~';
679 $ok = $self->ok( $test, $name );
708 my $test;
713 $test = eval "\$got $type \$expect";
716 my $ok = $self->ok($test, $name);
746 testing should terminate. This includes running any additional test
765 Skips the current test, reporting $why.
807 Like skip(), only it will declare the test as failing and TODO. Similar
852 and terminates the test.
855 test.
871 test failed.
880 $Test->ok($test);
899 Whether or not the test should output numbers. That is, this if true:
911 Most useful when you can't depend on the test output order, such as
939 Normally, Test::Builder does some extra diagnostics when the test
969 Controlling where the test output goes.
971 It's ok for your test to change where STDOUT and STDERR point to,
984 TODO test, the todo_output() handle is used.
987 with test output. A newline will be put on the end if there isn't one
993 a failing test (C<ok() || diag()>) it "passes through" the failure.
1081 Where normal "ok/not ok" test output should go.
1090 Where diagnostic output on test failures and diag() should go.
1099 Where diagnostics about todo test failures and diag() should go.
1144 die "Can't open test output log $file_or_fh: $!";
1192 # test suites while still getting normal test output.
1211 Gets/sets the current test number we're on. You usually shouldn't
1227 Carp::croak("Can't change the current test number without a plan!");
1232 # If the test counter is being pushed forward fill in the details.
1239 reason => 'incrementing test number',
1261 Of course, test #1 is $tests[0], etc...
1278 { 'ok' => is the test considered a pass?
1280 name => name of the test (if any)
1281 type => type of test (if any, see below).
1285 'ok' is true if Test::Harness will consider the test to be a pass.
1287 'actual_ok' is a reflection of whether or not the test literally
1291 'name' is the name of the test.
1293 'type' indicates if it was a special test. Normal tests have a type
1301 Sometimes the Test::Builder test counter is incremented without it
1302 printing any test output, for example, when current_test() is changed.
1303 In these cases, Test::Builder doesn't know the result of the test, so
1311 { ok => 1, # logically, the test passed since it's todo
1384 Runs a bunch of end of test sanity checks to make sure reality came
1491 Looks like you planned $Expected_Tests test$s but only ran $Curr_Test.
1498 Looks like you planned $Expected_Tests test$s but ran $num_extra extra.
1504 Looks like you failed $num_failed test$s of $Expected_Tests.
1510 Looks like your test died just after $Curr_Test.
1523 Looks like your test died before it could output anything.
1543 will throw a warning and exit with 255. If the test died, even after
1550 255 test died
1558 In perl 5.8.0 and later, Test::Builder is thread-safe. The test
1560 the test number using current_test() they will all be effected.