Initial import of Test::MockModule 0.05
Test::MockModule lets you temporarily redefine subroutines in other packages for the purposes of unit testing.
This commit is contained in:
parent
c8e7684389
commit
3f65f88017
23
devel/p5-Test-MockModule/Makefile
Normal file
23
devel/p5-Test-MockModule/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/04/04 17:47:08 sturm Exp $
|
||||
|
||||
COMMENT= "override subroutines in a module for unit testing"
|
||||
|
||||
DISTNAME= Test-MockModule-0.05
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= devel perl5
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/}
|
||||
|
||||
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
|
||||
|
||||
# Artistic
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
CONFIGURE_STYLE= perl
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
.include <bsd.port.mk>
|
4
devel/p5-Test-MockModule/distinfo
Normal file
4
devel/p5-Test-MockModule/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (Test-MockModule-0.05.tar.gz) = 1b013aeeb221f83e7f325a2f98169296
|
||||
RMD160 (Test-MockModule-0.05.tar.gz) = 08f112d1e7a143207767b27d13189e3e78c5db6d
|
||||
SHA1 (Test-MockModule-0.05.tar.gz) = d76b6c09caa81cba0b9b37aef0b9fb7bb0998801
|
||||
SIZE (Test-MockModule-0.05.tar.gz) = 5608
|
8
devel/p5-Test-MockModule/pkg/DESCR
Normal file
8
devel/p5-Test-MockModule/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
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.
|
||||
|
4
devel/p5-Test-MockModule/pkg/PLIST
Normal file
4
devel/p5-Test-MockModule/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/04/04 17:47:08 sturm Exp $
|
||||
${P5SITE}/Test/
|
||||
${P5SITE}/Test/MockModule.pm
|
||||
@man man/man3p/Test::MockModule.3p
|
Loading…
x
Reference in New Issue
Block a user