Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (44m)  pkgsrc-2024Q1 (10d)  pkgsrc-2023Q4 (57d)  pkgsrc-2023Q2 (89d)  pkgsrc-2023Q3 (168d) 

2024-05-27 17:04:18 UTC Now

2024-02-10 01:15:15 UTC MAIN commitmail json YAML

Add p5-Test-MockFile: Validate file-interaction code that without touching the file system

Test::MockFile - Allows tests to validate code that can interact with
files without touching the file system.

Intercepts file system calls for specific files so unit testing can take
place without any files being altered on disk.

This is useful for small tests where file interaction is discouraged.

A strict mode is even provided (and turned on by default) which can
throw a die when files are accessed during your tests!

(schmonz)