pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Test-MockModule Initial import of p5-Test-Moc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcffb8d8b5e9
branches:  trunk
changeset: 546905:bcffb8d8b5e9
user:      seb <seb%pkgsrc.org@localhost>
date:      Tue Sep 09 00:32:36 2008 +0000

description:
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:

 devel/p5-Test-MockModule/DESCR    |   7 +++++++
 devel/p5-Test-MockModule/Makefile |  19 +++++++++++++++++++
 devel/p5-Test-MockModule/distinfo |   5 +++++
 3 files changed, 31 insertions(+), 0 deletions(-)

diffs (43 lines):

diff -r 2889af9cd8ff -r bcffb8d8b5e9 devel/p5-Test-MockModule/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-MockModule/DESCR    Tue Sep 09 00:32:36 2008 +0000
@@ -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 -r 2889af9cd8ff -r bcffb8d8b5e9 devel/p5-Test-MockModule/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-MockModule/Makefile Tue Sep 09 00:32:36 2008 +0000
@@ -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@localhost
+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 -r 2889af9cd8ff -r bcffb8d8b5e9 devel/p5-Test-MockModule/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-MockModule/distinfo Tue Sep 09 00:32:36 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index