From 0cc9d66b451829b4667b9b5cfd9ffeeceb23347c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 May 2024 22:14:33 +0100 Subject: gnu: Add go-go-uber-org-mock. * gnu/packages/golang-check.scm (go-go-uber-org-mock): New variable. Change-Id: I9028edc15f1acd3301fde3a49eae8cc28568c6a5 --- gnu/packages/golang-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/golang-check.scm') diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 9e537d7d17..47d68fe929 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1087,6 +1087,39 @@ gracefully enhance standard library testing package and behaviors of the the end of a test.") (license license:expat))) +(define-public go-go-uber-org-mock + (package + (name "go-go-uber-org-mock") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/uber-go/mock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mz1cy02m70mdh7hyaqks8bkh9iyv4jgj6h4psww52nr3b9pnyyy")))) + (build-system go-build-system) + (arguments + (list + ;; XXX: The project contains subdirectory which complicate it's testing + ;; and it does not produce any binary. + #:tests? #f + #:go go-1.20 + #:import-path "go.uber.org/mock" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (propagated-inputs + (list go-golang-org-x-mod go-golang-org-x-tools)) + (home-page "https://pkg.go.dev/go.uber.org/mock") + (synopsis "Mocking framework for the Golang") + (description + "This package provides a mocking framework which integrates well with +built-in @code{testing} package, but can be used in other contexts too.") + (license license:asl2.0))) + (define-public go-honnef-co-go-tools (package (name "go-honnef-co-go-tools") -- cgit v1.2.3