SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
COMMENT = override subroutines in a module for unit testing
DISTNAME = Test-MockModule-v0.177.0
PKGNAME = p5-${DISTNAME:S/-v/-/}
CATEGORIES = devel
# Perl
PERMIT_PACKAGE = Yes
MODULES = cpan
BUILD_DEPENDS = devel/p5-Module-Build>=0.38
RUN_DEPENDS = devel/p5-SUPER>=1.20
TEST_DEPENDS = devel/p5-Test-Warnings
CONFIGURE_STYLE = modbuild
PKG_ARCH = *
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (Test-MockModule-v0.177.0.tar.gz) = G9p6SdzqdgdtQKe2psPz4V5rGchLYXHfRFNNkROPEEU=
SIZE (Test-MockModule-v0.177.0.tar.gz) = 23921

View file

@ -0,0 +1,7 @@
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.

View file

@ -0,0 +1,3 @@
${P5SITE}/Test/
${P5SITE}/Test/MockModule.pm
@man man/man3p/Test::MockModule.3p