summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-12-06 00:13:26 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:41:51 +0000
commit8e68de2d3ae1fe9404f804c692bb0045a2c3c3a9 (patch)
treeb49f888cc26576cdcd4fe7e4297c93b295c15b9d
parent6b572f4786f48716425b8e1a7bbe357e731f1f38 (diff)
gnu: Add go-go-abhg-dev-testing-stub.
* gnu/packages/golang-check.scm (go-go-abhg-dev-testing-stub): New variable. Change-Id: Idf937f7a27219af80a29748da89ea9fc5ddfa538
-rw-r--r--gnu/packages/golang-check.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index bd7853d362..3d9a41df31 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1227,6 +1227,30 @@ functions for writing tests in an @code{xUnit} style.")
struct initialization.")
(license license:bsd-3)))
+(define-public go-go-abhg-dev-testing-stub
+ (package
+ (name "go-go-abhg-dev-testing-stub")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/abhinav/stub-go")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "04by4hq9lhmz3ij2rdl053nr76l65q5w8w41khxgr5xak8s63yq6"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "go.abhg.dev/testing/stub"))
+ (home-page "https://github.com/abhinav/stub-go/tree")
+ (synopsis "Trivial stubbing package for Go")
+ (description
+ "Package stub provides helper functions to replace global variables for testing,
+and restore them afterwards.")
+ (license license:bsd-3)))
+
(define-public go-go-etcd-io-gofail
(package
(name "go-go-etcd-io-gofail")