| 1 |
NAME |
| 2 |
Test::Lib - Use libraries from a t/lib directory |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
use Test::Lib; |
| 6 |
use Test::More; |
| 7 |
use Private::Testing::Module; |
| 8 |
|
| 9 |
ok 1, 'passing test'; |
| 10 |
my_test 'test from private module'; |
| 11 |
|
| 12 |
DESCRIPTION |
| 13 |
Searches upward from the calling module for a directory t with a lib |
| 14 |
directory inside it, and adds it to the module search path. Looks upward |
| 15 |
up to 5 directories. This is intended to be used in test modules either |
| 16 |
directly in t or in a subdirectory to find their included testing |
| 17 |
libraries located in t/lib. |
| 18 |
|
| 19 |
AUTHOR |
| 20 |
Graham Knop <[email protected]> |
| 21 |
|
| 22 |
COPYRIGHT AND LICENSE |
| 23 |
This software is Copyright (c) 2012 by Graham Knop. |
| 24 |
|
| 25 |
This is free software; you can redistribute it and/or modify it under |
| 26 |
the same terms as the Perl 5 programming language system itself. |
| 27 |
|