From nobody Sun Sep 04 03:52:12 2022 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 4MKyQN6gmHz4bFl8; Sun, 4 Sep 2022 03:52: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 4MKyQN5Lb6z3RG9; Sun, 4 Sep 2022 03:52:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662263532; 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=/KXhQlrfUD5c6dpKB6H32NjYp2j+1uiG39VKt2Oo5cg=; b=rbdO4xEMGaXU8dXW4hyotEfMR8RuqzjfsJkMH9amBk6BnUIvsy0a+OdNacXNHP4GKwS4yW +hI4E7a7vewjAJXeddMWflXSERvhuoA8kXe5QIWQ/P9icT7/DfMV5tpxmNY17hNHlOWeki voOLm1IafIKsL10vID755Z9HjKizoAiuAsvCLQfosVHs3eEl77VCp5yEIxYs8aat6HhMhv +cl+cD5rcwnQuhFOnDMYfYaIkCnpmuFe7QTSC3c8kDy6EaSoukruNTBQGHpOJq6C+wLZy6 4ej0akbNQ6HpTfD6eKqxMpvsDtdRNXZVnEyjdkRllIfNgUju5pBfeJ6NEVlc3Q== 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 4MKyQN4RwSzMpt; Sun, 4 Sep 2022 03:52:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2843qCMR083342; Sun, 4 Sep 2022 03:52:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2843qCix083341; Sun, 4 Sep 2022 03:52:12 GMT (envelope-from git) Date: Sun, 4 Sep 2022 03:52:12 GMT Message-Id: <202209040352.2843qCix083341@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: a6bf1fb90351 - main - devel/p5-Test-Lives: Add p5-Test-Lives 1.003 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: a6bf1fb90351bc87394aad4a719078119f6c7b4c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662263532; 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=/KXhQlrfUD5c6dpKB6H32NjYp2j+1uiG39VKt2Oo5cg=; b=uYZzYfDnNYRfTvpKs4cm851j0wlD0eA9EzdTQW115nmxBNA03DqH3NDiAkRSmpGaYF7cXd 7AGI4g8kdybiTbaWPSzwShi1nYZT6tCWm/kIPKJ0XplBqYRnTTjjUQmNuBmyIHr89tHu6D 1rDOhuU6MvXTufqzoT82tgMUX8M/wQdFHPD1Om7hG3XBAWLzd8/uT7n/uuzM5cunkbfr7I FB6NvknQJsXBEp+wzl7XFXEut7vKMUq/9XNeULamVZ/RYODKwCNXeKo1B9X1g3W3Fn4Dpz hxK81N67A/SBUA/SnLAmpxak8YcSMX7ljvnJnwSMl/fUsIeUagceTHULBZtWsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662263532; a=rsa-sha256; cv=none; b=SooxIAEvasQq4dmdPo7flPq8QIRgUJqWGt9golY0g6jziSgTSLT5N8i/PMS5T4xd2Vc6gU s9j0bjnXCZEjuGwq0GCsvjq/jKUnxZJs6aUE2u8KNo9MNQQyECa2XjevpqVmJrIGggNJ/b l6bjI9v4rP6qRrsLY49p5rNsLkENWHBbduax/b0SiL2t0Ga3YVBg9YO3AXON0gGb6H6toJ fDXuBDHPoKchDhlG4iWasMKjeWF0B++iZy4H2E9INV6jMhrOJXc8dsi9d4W0LwUrLRlEnc yZKxiFNvDdZUie+sfQEOYEvZBmAW55WiBfmye+cPk8/VluQ9HK44tSkMybhNfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a6bf1fb90351bc87394aad4a719078119f6c7b4c commit a6bf1fb90351bc87394aad4a719078119f6c7b4c Author: Po-Chuan Hsieh AuthorDate: 2022-09-04 03:41:27 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-09-04 03:41:27 +0000 devel/p5-Test-Lives: Add p5-Test-Lives 1.003 Test::Lives provides only one function, lives_and, which works almost exactly like the function of the same name in Test::Exception. That is, it allows you to test things that could (but shouldn't) throw an exception without having to have two separate tests with two separate results (and two separate descriptions). You pass it a block of code to run (which should contain one test assertion) and a test description to give the assertion inside the block. The description will be available inside the block in the $_ variable. (This is different from Test::Exception, which employs hacky magic to relieve you of having to pass the description to the decorated assertion.) If the block ends up throwing an exception, a test failure will be logged. WWW: https://metacpan.org/dist/Test-Lives --- devel/Makefile | 1 + devel/p5-Test-Lives/Makefile | 19 +++++++++++++++++++ devel/p5-Test-Lives/distinfo | 3 +++ devel/p5-Test-Lives/pkg-descr | 15 +++++++++++++++ devel/p5-Test-Lives/pkg-plist | 2 ++ 5 files changed, 40 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 741f1743a8e9..a948464994da 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3442,6 +3442,7 @@ SUBDIR += p5-Test-LeakTrace SUBDIR += p5-Test-LectroTest SUBDIR += p5-Test-Lib + SUBDIR += p5-Test-Lives SUBDIR += p5-Test-LoadAllModules SUBDIR += p5-Test-Log-Log4perl SUBDIR += p5-Test-Log4perl diff --git a/devel/p5-Test-Lives/Makefile b/devel/p5-Test-Lives/Makefile new file mode 100644 index 000000000000..88b6b293c015 --- /dev/null +++ b/devel/p5-Test-Lives/Makefile @@ -0,0 +1,19 @@ +PORTNAME= Test-Lives +PORTVERSION= 1.003 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Decorate tests with a no-exceptions assertion + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-Test-Lives/distinfo b/devel/p5-Test-Lives/distinfo new file mode 100644 index 000000000000..a0cf0988573c --- /dev/null +++ b/devel/p5-Test-Lives/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662212100 +SHA256 (Test-Lives-1.003.tar.gz) = d811b18522161116dd5d45dd1711d6f7178cf64d00b5316c0bcfe4a6f86a6d94 +SIZE (Test-Lives-1.003.tar.gz) = 11115 diff --git a/devel/p5-Test-Lives/pkg-descr b/devel/p5-Test-Lives/pkg-descr new file mode 100644 index 000000000000..f6705e501b2e --- /dev/null +++ b/devel/p5-Test-Lives/pkg-descr @@ -0,0 +1,15 @@ +Test::Lives provides only one function, lives_and, which works almost exactly +like the function of the same name in Test::Exception. That is, it allows you to +test things that could (but shouldn't) throw an exception without having to have +two separate tests with two separate results (and two separate descriptions). + +You pass it a block of code to run (which should contain one test assertion) and +a test description to give the assertion inside the block. + +The description will be available inside the block in the $_ variable. (This is +different from Test::Exception, which employs hacky magic to relieve you of +having to pass the description to the decorated assertion.) + +If the block ends up throwing an exception, a test failure will be logged. + +WWW: https://metacpan.org/dist/Test-Lives diff --git a/devel/p5-Test-Lives/pkg-plist b/devel/p5-Test-Lives/pkg-plist new file mode 100644 index 000000000000..d41c8f126c90 --- /dev/null +++ b/devel/p5-Test-Lives/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Test/Lives.pm +%%PERL5_MAN3%%/Test::Lives.3.gz