1AutoLoader(3)         User Contributed Perl Documentation        AutoLoader(3)
2
3
4

NAME

6       Test::AutoLoader - a testing utility for autosplit/autoloaded modules.
7

SYNOPSIS

9         use Test::AutoLoader;
10         use Test::More tests => 3;
11
12         use_ok("My::Module"); # from Test::More
13         autoload_ok("My::Module","mysub","sub_two); # test only the listed subs
14         autoload_ok("My::Module"); # tests all '.al' files found for the module
15

DESCRIPTION

17       This single-purpose module attempts to eliminate uncaught syntax errors
18       or other obvious goofs in subroutines that are autosplit, and hence not
19       looked at by "perl -c Module.pm".  Ideally, this module will become
20       unnecessary as you reach full coverage of those subroutines in your
21       unit tests.  Until that happy day, however, this should provide a quick
22       and dirty backstop for embarrassing typos.
23
24       Test::AutoLoader is built on Test::Builder, and should interoperate
25       smoothly with other such modules (e.g. Test::Simple, Test::More).
26

EXPORT

28   autoload_ok
29       Very much like the 'use_ok' subroutine (see Test::More).  If passed
30       only a module name, it will find all subroutine definitions in the
31       "auto" directory and attempt to compile them.  If passed a list of
32       subroutine names, it will look for and attempt to compile those (and
33       only those).  Any files that cannot be found (if specified directly),
34       read, and compiled will be listed in the diagnostic output for the
35       failed test.
36

AUTHOR

38       Ben Warfield (ben_warfield@nrgn.com)
39
41       This module is copyright (c) 2005 Neurogen Corporation, Branford,
42       Connecticut, USA.  It may be distributed under the terms of the GNU
43       General Public License.
44

SEE ALSO

46       perl, Test::More, AutoLoader.
47
48
49
50perl v5.30.1                      2020-01-30                     AutoLoader(3)
Impressum