From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ntv-0002EK-IK for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3nto-0006Z5-3v for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:23 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3ntj-0006U4-Nf for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3ntj-0003nB-Gf for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:15 -0400 Subject: [bug#34831] [PATCH 21/25] gnu: Add perl6-test-mock. Resent-Message-ID: From: Efraim Flashner Date: Tue, 12 Mar 2019 22:20:10 +0200 Message-Id: <20190312202014.31224-21-efraim@flashner.co.il> In-Reply-To: <20190312201608.30892-1-efraim@flashner.co.il> References: <20190312201608.30892-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34831@debbugs.gnu.org * gnu/packages/perl6.scm (perl6-test-mock): New variable. --- gnu/packages/perl6.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm index 1d47562c13..b1e2f10ac9 100644 --- a/gnu/packages/perl6.scm +++ b/gnu/packages/perl6.scm @@ -580,6 +580,33 @@ minimal wrapper around an instance of this module.") some confidence that they have a working distribution META description file.") (license license:artistic2.0))) +(define-public perl6-test-mock + (package + (name "perl6-test-mock") + (version "1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jnthn/test-mock") + ;; The commit where 1.5 was "tagged" + (commit "6eddb42f73f40b9ac29c14badb41ce4a04d876f2"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07yr3qimc8fl29p23562ayj2j9h53madcnf9sgqvgf2kcprh0zd2")))) + (build-system rakudo-build-system) + (propagated-inputs + `(("perl6-oo-monitors" ,perl6-oo-monitors))) + (home-page "https://github.com/jnthn/test-mock") + (synopsis "Module for simply generating and checking mock objects") + (description "@code{Test::Mock} is a module that works alongside the +standard Test module to help you write tests when you want to verify what +methods are called on an object, while still having calls to undefined methods +die. You get started just as normal with the test file, but also add a use +statement for @code{Test::Mock}.") + (license license:artistic2.0))) + (define-public perl6-uri (package (name "perl6-uri") -- 2.21.0