From nobody Wed Nov 01 02:15:11 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SKrFD0KdJz4yWWn; Wed, 1 Nov 2023 02:15:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SKrFC5VXTz3SNd; Wed, 1 Nov 2023 02:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698804911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UUWt7Mej1WuQS9bIkqFOBYUOMMbiqIax15IWp7BEXIM=; b=AvfVKAW1AKbpiECRBDuHnbZxkc+8XbfSRlHLYVNPYPw1ekg+kAgC/LhCpOPdjkrc6pGnBQ yPxOyiaXAVOVDNTQXcDpCyTb5W1B8xRpWbRcJe2djJu25+5uLn9E1mPBXdn1M3D/qatJrT A1R1kWoU1a9lwECi+FMfMJ27yw3NjSxkRJL+MuJaCAAPIfhF872EYSqb3mkENcxeOV8/fr jrs7Gu5q9pPx5B1KE1471Svj4iXpa8cYsDT3Yi+0LSge5kxuEob/H6DRXuJmse2jhQ0TDo 9r2bulzEYAbIzRDf6N2G4nXvYn5siXSvp9Fk3oILH45jJ6tPje1Uy7AE8l7axA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698804911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UUWt7Mej1WuQS9bIkqFOBYUOMMbiqIax15IWp7BEXIM=; b=l0muu27ts+J1Q5WnE3zQcEY4v6JQtK2oqa5ALciVvf2abj9OBIfi4cY7nuQ4HtP2LjhH2G jChGUEcI7AhO7lVdEZ1oGGVGD2AVtTBtERfO9qrRXiMpy+rExj3yn2kG1LOtMHTXT1veZW uUcHzTraJSDUmzbREjyR07wbp7LY0yxznkqV4TQ4QflKUVZ9h/RrMUceDq9Vf60wqdYfgH 6OJQoU0ZjDB99WjfSVfE+LclCv+EvW0U41J46GNPO83F2N9hsWm/9/bKae15iP5pKjXE9h GKXz5ROcO18hyVEwYa0e+OxpqyPQRuY/hMPabRRzNoqcxYJxS9FY0uPLs5SPaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698804911; a=rsa-sha256; cv=none; b=KXqOoANAB76tTLbHq5lm8My7P0K0IZB4RUi1DL5VJzI8eR1aXWCxAdMDXQs58Ylg9Yhqvc 6Qv0GDbzdc8HEpFxHg3T+NgcDiyo/8bZJNS5LGwwSaUDGwOLwss46YVN06ujWD/mgesjOe KX9VXVEEtKvtt1nvnIELc2ZJtPoMWC+2Ngr8fpQxVfkvzDWtXLGffOEFes2dUtANsb5/bk 6HqV/MaV+JyUMrImoxlyKNQdOZb7NPRIlXipHwICC/+N+T26D1X+wa2bjZ/HwX5C6qkLRK xs6R8ZdnkNvsj814JQXWrrvFK80B9bYHMEo+v9C1PqprEzdIEcwmxyz5t5vXcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SKrFC4648zCxp; Wed, 1 Nov 2023 02:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A12FB9R066241; Wed, 1 Nov 2023 02:15:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A12FB5s066238; Wed, 1 Nov 2023 02:15:11 GMT (envelope-from git) Date: Wed, 1 Nov 2023 02:15:11 GMT Message-Id: <202311010215.3A12FB5s066238@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 77338ad1c17d - main - devel/p5-Test-ExpectAndCheck: Add p5-Test-ExpectAndCheck 0.06 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 77338ad1c17d4c120ac9f68e3b70a7e519286820 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=77338ad1c17d4c120ac9f68e3b70a7e519286820 commit 77338ad1c17d4c120ac9f68e3b70a7e519286820 Author: Po-Chuan Hsieh AuthorDate: 2023-11-01 01:45:13 +0000 Commit: Po-Chuan Hsieh 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 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