pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/p5-Test-MockFile
Module Name: pkgsrc
Committed By: schmonz
Date: Sat Feb 10 01:15:15 UTC 2024
Added Files:
pkgsrc/devel/p5-Test-MockFile: DESCR Makefile distinfo
Log Message:
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!
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Test-MockFile/DESCR \
pkgsrc/devel/p5-Test-MockFile/Makefile \
pkgsrc/devel/p5-Test-MockFile/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/p5-Test-MockFile/DESCR
diff -u /dev/null pkgsrc/devel/p5-Test-MockFile/DESCR:1.1
--- /dev/null Sat Feb 10 01:15:15 2024
+++ pkgsrc/devel/p5-Test-MockFile/DESCR Sat Feb 10 01:15:15 2024
@@ -0,0 +1,10 @@
+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!
Index: pkgsrc/devel/p5-Test-MockFile/Makefile
diff -u /dev/null pkgsrc/devel/p5-Test-MockFile/Makefile:1.1
--- /dev/null Sat Feb 10 01:15:15 2024
+++ pkgsrc/devel/p5-Test-MockFile/Makefile Sat Feb 10 01:15:15 2024
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2024/02/10 01:15:15 schmonz Exp $
+
+DISTNAME= Test-MockFile-0.036
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://metacpan.org/pod/Test::MockFile
+COMMENT= Validate file-interaction code that without touching the file system
+LICENSE= artistic-2.0
+
+DEPENDS+= p5-Overload-FileCheck>=0.013:../../devel/p5-Overload-FileCheck
+DEPENDS+= p5-Text-Glob>=0:../../textproc/p5-Text-Glob
+
+PERL5_PACKLIST= auto/Test/MockFile/.packlist
+USE_LANGUAGES= # none
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/p5-Test-MockFile/distinfo
diff -u /dev/null pkgsrc/devel/p5-Test-MockFile/distinfo:1.1
--- /dev/null Sat Feb 10 01:15:15 2024
+++ pkgsrc/devel/p5-Test-MockFile/distinfo Sat Feb 10 01:15:15 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/02/10 01:15:15 schmonz Exp $
+
+BLAKE2s (Test-MockFile-0.036.tar.gz) = 254f3adce71b129603ed5e555d645e18a525faa522f161b0890ff630b54cf277
+SHA512 (Test-MockFile-0.036.tar.gz) = c648c6c984b143ed8273d63e78a657b37a2e7bcdd916e776b87dad20d081d10c0e5279672133b45ad30ea8d36c84e7e7f8c17342bf96fcf9b61c62868b3141ff
+Size (Test-MockFile-0.036.tar.gz) = 59444 bytes
Home |
Main Index |
Thread Index |
Old Index