summaryrefslogtreecommitdiff
path: root/devel/p5-Test-MockModule
diff options
context:
space:
mode:
authorseb <seb>2008-09-09 00:32:36 +0000
committerseb <seb>2008-09-09 00:32:36 +0000
commit02b044f5e1c4c29d6cafee323a8fd50adc2583bf (patch)
treeb13e1318a5e6c569beaeabda11ad1bbc8123bf1b /devel/p5-Test-MockModule
parentc6178d612664e407807d907817e2ad33fa16a8c8 (diff)
downloadpkgsrc-02b044f5e1c4c29d6cafee323a8fd50adc2583bf.tar.gz
Initial import of p5-Test-MockModule version 0.05 in the NetBSD
Packages Collection. The Perl 5 module Test::MockModule lets you temporarily redefine subroutines in other packages for the purposes of unit testing. A Test::MockModule object is set up to mock subroutines for a given module. The object remembers the original subroutine so it can be easily restored. This happens automatically when all MockModule objects for the given module go out of scope, or when you unmock() the subroutine.
Diffstat (limited to 'devel/p5-Test-MockModule')
-rw-r--r--devel/p5-Test-MockModule/DESCR7
-rw-r--r--devel/p5-Test-MockModule/Makefile19
-rw-r--r--devel/p5-Test-MockModule/distinfo5
3 files changed, 31 insertions, 0 deletions
diff --git a/devel/p5-Test-MockModule/DESCR b/devel/p5-Test-MockModule/DESCR
new file mode 100644
index 00000000000..09b0bda3339
--- /dev/null
+++ b/devel/p5-Test-MockModule/DESCR
@@ -0,0 +1,7 @@
+The Perl 5 module Test::MockModule lets you temporarily redefine
+subroutines in other packages for the purposes of unit testing.
+A Test::MockModule object is set up to mock subroutines for a given
+module. The object remembers the original subroutine so it can be
+easily restored. This happens automatically when all MockModule
+objects for the given module go out of scope, or when you unmock()
+the subroutine.
diff --git a/devel/p5-Test-MockModule/Makefile b/devel/p5-Test-MockModule/Makefile
new file mode 100644
index 00000000000..c86d81391d2
--- /dev/null
+++ b/devel/p5-Test-MockModule/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/09 00:32:36 seb Exp $
+#
+
+DISTNAME= Test-MockModule-0.05
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5 net
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Test-MockModule/
+COMMENT= Perl 5 module to override subroutines in a module for unit testing
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Test/MockModule/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Test-MockModule/distinfo b/devel/p5-Test-MockModule/distinfo
new file mode 100644
index 00000000000..d904914a08a
--- /dev/null
+++ b/devel/p5-Test-MockModule/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/09 00:32:36 seb Exp $
+
+SHA1 (Test-MockModule-0.05.tar.gz) = d76b6c09caa81cba0b9b37aef0b9fb7bb0998801
+RMD160 (Test-MockModule-0.05.tar.gz) = 08f112d1e7a143207767b27d13189e3e78c5db6d
+Size (Test-MockModule-0.05.tar.gz) = 5608 bytes