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

Lines Matching refs:tests

136 Mostly useful for tests run in persistent environments where the same
187 =head2 Setting up tests
189 These methods are for setting up tests and declaring how many there
200 This is important for getting TODO tests right.
217 $Test->plan( tests => $num_tests );
219 A convenient way to set up your tests. Call this and Test::Builder
242 elsif( $cmd eq 'tests' ) {
247 die "Got an undefined number of tests. Looks like you tried to ".
248 "say how many tests you plan to run but made a mistake.\n";
251 die "You said to run 0 tests! You've got to run something.\n";
268 Gets/sets the # of tests we expect this test to run and prints out
278 die "Number of tests must be a postive integer. You gave it '$max'.\n"
294 Declares that this test will run an indeterminate # of tests.
307 Find out whether a plan has been defined. $plan is either C<undef> (no plan has been set), C<no_plan> (indeterminate # of tests) or an integer (the number of expected tests).
323 Skips all the tests, using the given $reason. Exits immediately with 0.
342 =head2 Running tests
344 These actually run the tests, analogous to the functions in
585 You'll want to avoid qr// if you want your tests to work before 5.005.
776 Carp::croak("You tried to run tests without a plan! Gotta have a plan.");
820 Carp::croak("You tried to run tests without a plan! Gotta have a plan.");
851 Like skip(), only it skips all the rest of the tests you plan to run
1041 # tests are deparsed with B::Deparse
1214 If set forward, the details of the missing tests are filled in as 'unknown'.
1215 if set backward, the details of the intervening tests are deleted. You
1256 my @tests = $Test->summary;
1258 A simple summary of the tests so far. True for pass, false for fail.
1261 Of course, test #1 is $tests[0], etc...
1273 my @tests = $Test->details;
1277 $tests[$test_num - 1] =
1289 tests.
1293 'type' indicates if it was a special test. Normal tests have a type
1304 it's type is 'unkown'. These details for these tests are filled in.
1310 $tests[22] = # 23 - 1, since arrays start from 0.
1329 todo() looks for a $TODO variable in your tests. If set, all tests
1332 todo tests, false otherwise.
1392 _whoa($Curr_Test < 0, 'Says here you ran a negative number of tests!');
1394 'Somehow your tests ran without a plan!');
1396 'Somehow you got a different number of results than tests ran!');
1528 $self->diag("No tests run!\n");
1539 If all your tests passed, Test::Builder will exit with zero (which is
1541 you run less (or more) tests than you planned, the missing (or extras)
1542 will be considered failures. If no tests were ever run Test::Builder
1544 having successfully completed all its tests, it will still be
1549 0 all tests successful
1553 If you fail more than 254 tests, it will be reported as 254.