File::H...ir::Test(3)
๐ฆ NAME ๐ฆ
File::HomeDir::Test โ ok bestie, this is the module whose whole job is preventing the accidental creation of user-owned files during testing. No cap. Itโs the test-safe friend in the File::HomeDir universe.
Also folding in the manual-page tea: this is the File::H...ir::Test(3) page from the User Contributed Perl Documentation. ๐
โจ SYNOPSIS โจ
use Test::More test => 1;
use File::HomeDir::Test;
use File::HomeDir;
Like, thatโs the whole intro. Three use lines and youโre in business. ๐
๐ธ DESCRIPTION ๐ธ
File::HomeDir::Test is a File::HomeDir driver intended for use in the test scripts of modules or applications that write files into user-owned directories. Yep โ itโs giving โtest-suite bodyguardโ energy.
It is designed to prevent the pollution of user directories with files that are not part of the application install itself, but were created during testing. Because bestie, those stray test files can leak state information from the tests into the run-time usage of an application. ๐ญ
And on Unix systems, it also prevents tests (which may be executed as root via sudo) from writing files which cannot later be modified or removed by the regular user. Thatโs a big slay for not leaving cursed root-owned files lying around. ๐ฅ
๐ซถ SUPPORT ๐ซถ
See the support section of the main File::HomeDir documentation. Thatโs the official support vibe โ go check the main docs, iykyk. ๐
๐ AUTHOR ๐
Adam Kennedy <adamk@cpan.org>
๐ COPYRIGHT ๐
Copyright 2005 - 2011 Adam Kennedy.
Copyright 2017 - 2020 Jens Rehsack
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
And thatโs the page, bestie: footer tea is perl v5.42.0, dated 2020-09-29, and the manual page tag is File::H...ir::Test(3). Periodt. ๐
โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: perl-File-HomeDir 1.006-160000.2.2 ยท 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