1Test::Lib(3) User Contributed Perl Documentation Test::Lib(3)
2
3
4
6 Test::Lib - Use libraries from a t/lib directory
7
9 use Test::Lib;
10 use Test::More;
11 use Private::Testing::Module;
12
13 ok 1, 'passing test';
14 my_test 'test from private module';
15
17 Searches upward from the calling module for a directory t with a lib
18 directory inside it, and adds it to the module search path. Looks
19 upward up to 5 directories. This is intended to be used in test
20 modules either directly in t or in a subdirectory to find their
21 included testing libraries located in t/lib.
22
24 Graham Knop <haarg@haarg.org>
25
27 This software is Copyright (c) 2012 by Graham Knop.
28
29 This is free software; you can redistribute it and/or modify it under
30 the same terms as the Perl 5 programming language system itself.
31
32
33
34perl v5.36.0 2022-07-22 Test::Lib(3)