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. πŸ‘‘

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