• 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:can

119 which you can switch to once you get the hang of basic testing.
124 data structures. While you can do almost anything with a simple
139 your script is going to run. In this case, you can declare that you
161 Alternatively, you can use the plan() function. Useful for when you
277 ok( Film->can('db_Main'), 'set_db()' );
341 So you can figure out what went wrong without rerunning the test.
464 Checks to make sure the $module or $object can do these @methods
471 ok( Foo->can('this') &&
472 Foo->can('that') &&
473 Foo->can('whatever')
493 my $ok = $Test->ok( 0, "$class->can(...)" );
502 eval { $proto->can($method) } || push @nok, $method;
506 $name = @methods == 1 ? "$class->can('$methods[0]')"
507 : "$class->can(...)";
511 $Test->diag(map " $class->can('$_') failed\n", @nok);
540 you'd like them to be more specific, you can supply an $object_name
558 # We can't use UNIVERSAL::isa because we want to honor isa() overrides
606 wedge into an ok(). In this case, you can simply use pass() (to
655 All diag()s can be made silent by passing the "no_diag" option to
701 Version numbers can be checked like so:
826 block of tests which can be skipped over or made todo. It's best if I
864 the label C<SKIP>, or Test::More can't work its magic.
877 # $how_many can only be avoided when no_plan is in use.
918 You then know the thing you had todo is done and can remove the
957 # $how_many can only be avoided when no_plan is in use.
1291 libraries which both use Test::Builder B<can be used together in the
1295 you can access the underlying Test::Builder object like so:
1387 written my own ok() routines. This module exists because I can't
1401 some tests. You can upgrade to Test::More later (it's forward
1441 This program is free software; you can redistribute it and/or