logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::Lib - Use libraries from a t/lib directory

Author

       Graham Knop <haarg@haarg.org>

Description

       Searches upward from the calling module for a directory t with a lib directory inside it, and adds it to
       the module search path.  Looks upward up to 5 directories.  This is intended to be used in test modules
       either directly in t or in a subdirectory to find their included testing libraries located in t/lib.

Name

       Test::Lib - Use libraries from a t/lib directory

Synopsis

           use Test::Lib;
           use Test::More;
           use Private::Testing::Module;

           ok 1, 'passing test';
           my_test 'test from private module';

See Also