git: 77338ad1c17d - main - devel/p5-Test-ExpectAndCheck: Add p5-Test-ExpectAndCheck 0.06

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 01 Nov 2023 02:15:11 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77338ad1c17d4c120ac9f68e3b70a7e519286820

commit 77338ad1c17d4c120ac9f68e3b70a7e519286820
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-01 01:45:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-01 01:56:55 +0000

    devel/p5-Test-ExpectAndCheck: Add p5-Test-ExpectAndCheck 0.06
    
    Test::ExpectAndCheck creates objects that assist in writing unit tests with
    mocked object instances. Each mock instance will expect to receive a given list
    of method calls. Each method call is checked that it received the right
    arguments, and will return a prescribed result. At the end of each test, each
    object is checked to ensure all the expected methods were called.
---
 devel/Makefile                         |  1 +
 devel/p5-Test-ExpectAndCheck/Makefile  | 25 +++++++++++++++++++++++++
 devel/p5-Test-ExpectAndCheck/distinfo  |  3 +++
 devel/p5-Test-ExpectAndCheck/pkg-descr |  5 +++++
 devel/p5-Test-ExpectAndCheck/pkg-plist |  4 ++++
 5 files changed, 38 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 6820881b8167..10af49357516 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3519,6 +3519,7 @@
     SUBDIR += p5-Test-Exception
     SUBDIR += p5-Test-Exit
     SUBDIR += p5-Test-Expect
+    SUBDIR += p5-Test-ExpectAndCheck
     SUBDIR += p5-Test-FailWarnings
     SUBDIR += p5-Test-Fake-HTTPD
     SUBDIR += p5-Test-Fatal
diff --git a/devel/p5-Test-ExpectAndCheck/Makefile b/devel/p5-Test-ExpectAndCheck/Makefile
new file mode 100644
index 000000000000..bd97b1efd04b
--- /dev/null
+++ b/devel/p5-Test-ExpectAndCheck/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	Test-ExpectAndCheck
+PORTVERSION=	0.06
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Expect/check-style unit testing with object methods
+WWW=		https://metacpan.org/dist/Test-ExpectAndCheck
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${RUN_DEPENDS}
+RUN_DEPENDS=	p5-Future>=0:devel/p5-Future \
+		p5-Test-Deep>=0:devel/p5-Test-Deep
+TEST_DEPENDS=	p5-Test2-Suite>=0:devel/p5-Test2-Suite
+
+USES=		perl5
+USE_PERL5=	modbuild
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Test-ExpectAndCheck/distinfo b/devel/p5-Test-ExpectAndCheck/distinfo
new file mode 100644
index 000000000000..d0bc9cfe7349
--- /dev/null
+++ b/devel/p5-Test-ExpectAndCheck/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698340915
+SHA256 (Test-ExpectAndCheck-0.06.tar.gz) = 7ffa355e933c66ac444bb172da1d206aad8e98a5069ca307f8cb2014082f5556
+SIZE (Test-ExpectAndCheck-0.06.tar.gz) = 20056
diff --git a/devel/p5-Test-ExpectAndCheck/pkg-descr b/devel/p5-Test-ExpectAndCheck/pkg-descr
new file mode 100644
index 000000000000..b6a777f522b2
--- /dev/null
+++ b/devel/p5-Test-ExpectAndCheck/pkg-descr
@@ -0,0 +1,5 @@
+Test::ExpectAndCheck creates objects that assist in writing unit tests with
+mocked object instances. Each mock instance will expect to receive a given list
+of method calls. Each method call is checked that it received the right
+arguments, and will return a prescribed result. At the end of each test, each
+object is checked to ensure all the expected methods were called.
diff --git a/devel/p5-Test-ExpectAndCheck/pkg-plist b/devel/p5-Test-ExpectAndCheck/pkg-plist
new file mode 100644
index 000000000000..077b03d7b84d
--- /dev/null
+++ b/devel/p5-Test-ExpectAndCheck/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/Test/ExpectAndCheck.pm
+%%SITE_PERL%%/Test/ExpectAndCheck/Future.pm
+%%PERL5_MAN3%%/Test::ExpectAndCheck.3.gz
+%%PERL5_MAN3%%/Test::ExpectAndCheck::Future.3.gz