Test::Lib(3)
π Test::Lib(3) β NAME π
okay so bestie, welcome to the Test::Lib(3) page from User Contributed Perl Documentation β it's giving βuse libraries from a t/lib directory,β and I'm obsessed. π
πΈ SYNOPSIS πΈ
use Test::Lib;
use Test::More;
use Private::Testing::Module;
ok 1, 'passing test';
my_test 'test from private module';
π¦ DESCRIPTION π¦
okay so here's the tea: it searches upward from the calling module for a directory named t with a lib directory inside it, and adds it to the module search path. It looks upward up to 5 directories. No cap. β¨
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. Periodt. π
π AUTHOR π
Graham Knop <haarg@haarg.org> β iconic behavior, honestly. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2012 by Graham Knop.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
mwah π β brought to you by perl v5.42.0, dated 2022-05-24, and starring Test::Lib(3). slay forever π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Lib 0.003-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms