guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit 75384f2ed05a5f6de8f92000b9197f7602290506
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Wed May 28 15:28:14 2025 +0100

    gnu: Add go-github-com-cockroachdb-datadriven.
    
    * gnu/packages/golang-check.scm (go-github-com-cockroachdb-datadriven): New 
variable.
    
    Change-Id: I96d63fadc8f668ccff4c08f8e54942d5ca1c6430
---
 gnu/packages/golang-check.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 51af496b64..bb93fbd05c 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -343,6 +343,36 @@ test (using testing.TB's @code{TempDir}) and with a few 
helper methods.")
      "A testing library for Go programs.")
     (license license:expat)))
 
+(define-public go-github-com-cockroachdb-datadriven
+  (package
+    (name "go-github-com-cockroachdb-datadriven")
+    (version "1.0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/cockroachdb/datadriven";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1h2dhm4g1n8ny71lm495l5l842lwq320la0q8b8zmr4w3s5nyk09"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/cockroachdb/datadriven"))
+    (propagated-inputs
+     (list go-github-com-pmezard-go-difflib))
+    (home-page "https://github.com/cockroachdb/datadriven";)
+    (synopsis "Data-Driven Tests for Golang")
+    (description
+     "This package implements an extension of
+@url{https://github.com/golang/go/wiki/TableDrivenTests, Table-Driven
+Testing}.  Instead of building and iterating over a table in the test code,
+the input is further separated into files (or inline strings).  For certain
+classes of tests, this can significantly reduce the friction involved in
+writing and reading these tests.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-coder-quartz
   (package
     (name "go-github-com-coder-quartz")

Reply via email to