Query: test::autoloader
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
AutoLoader(3pm) User Contributed Perl Documentation AutoLoader(3pm)NAMETest::AutoLoader - a testing utility for autosplit/autoloaded modules.SYNOPSISuse Test::AutoLoader; use Test::More tests => 3; use_ok("My::Module"); # from Test::More autoload_ok("My::Module","mysub","sub_two); # test only the listed subs autoload_ok("My::Module"); # tests all '.al' files found for the moduleDESCRIPTIONThis single-purpose module attempts to eliminate uncaught syntax errors or other obvious goofs in subroutines that are autosplit, and hence not looked at by "perl -c Module.pm". Ideally, this module will become unnecessary as you reach full coverage of those subroutines in your unit tests. Until that happy day, however, this should provide a quick and dirty backstop for embarrassing typos. Test::AutoLoader is built on Test::Builder, and should interoperate smoothly with other such modules (e.g. Test::Simple, Test::More).EXPORTautoload_ok Very much like the 'use_ok' subroutine (see Test::More). If passed only a module name, it will find all subroutine definitions in the "auto" directory and attempt to compile them. If passed a list of subroutine names, it will look for and attempt to compile those (and only those). Any files that cannot be found (if specified directly), read, and compiled will be listed in the diagnostic output for the failed test.AUTHORBen Warfield (ben_warfield@nrgn.com)COPYRIGHT AND LICENSEThis module is copyright (c) 2005 Neurogen Corporation, Branford, Connecticut, USA. It may be distributed under the terms of the GNU General Public License.SEE ALSOperl, Test::More, AutoLoader. perl v5.10.1 2005-07-22 AutoLoader(3pm)
Related Man Pages |
---|
test::use::ok(3) - mojave |
test::without::module(3) - centos |
test::builder::module(3pm) - osx |
test::mockmodule(3pm) - debian |
test::requires(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
goofs 0.6 (Default branch) |
TAHI Test Suite 4.0.2 (Self-Test Test Suite branch) |
Perl: FH and multiple writes |
calling perl subroutine from perl expect module |
perl: Subroutine question |