sharlatan pushed a commit to branch go-team
in repository guix.
commit 499d706c885a7d77f354fc6f15d072b380d6c556
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Dec 6 00:13:26 2024 +0000
gnu: Add go-go-abhg-dev-testing-stub.
* gnu/packages/golang-check.scm (go-go-abhg-dev-testing-stub): New variable.
Change-Id: Idf937f7a27219af80a29748da89ea9fc5ddfa538
---
gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 2bc8303b72..6253cfdf94 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")