File::HomeDir::Test(3pm)

File::HomeDir::Test3pm

Prevent the accidental creation of user-owned files during testing

Usage

  use Test::More test => 1;
  use File::HomeDir::Test;
  use File::HomeDir;

Overview

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.

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. These files can leak state information from the tests into the run-time usage of an application, and on Unix systems 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.

Support

See the support section of the main File::HomeDir documentation.

Releases

8 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8–9
  3. 10
  4. 11
  5. 12–13
  6. Arch

Author

Adam Kennedy <[email protected]>

From perl-file-homedir 1.006-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.