2023-10-19 01:28:54 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2023-10-19 01:28:55 +00:00
|
|
|
|
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
|
|
|
|
|
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
|
|
|
|
;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il>
|
2023-10-19 01:28:54 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages golang-check)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix build-system go)
|
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages golang))
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;;;
|
|
|
|
|
;;; Golang packages to unit-test, mock, assert, lint processes for Golang itself.
|
|
|
|
|
;;;
|
|
|
|
|
;;; Please: Try to add new module packages in alphabetic order.
|
|
|
|
|
;;;
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
2023-10-19 01:28:55 +00:00
|
|
|
|
(define-public go-github-com-stretchr-testify
|
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-stretchr-testify")
|
|
|
|
|
(version "1.7.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/stretchr/testify")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ixgjsvafr3513pz3r6pmgk074s2dxkll0dadvl25gkf30rkmh10"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:import-path "github.com/stretchr/testify"))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("github.com/davecgh/go-spew" ,go-github-com-davecgh-go-spew)
|
|
|
|
|
("github.com/pmezard/go-difflib" ,go-github-com-pmezard-go-difflib)
|
|
|
|
|
("github.com/stretchr/objx" ,go-github-com-stretchr-objx)
|
|
|
|
|
("gopkg.in/yaml.v3" ,go-gopkg-in-yaml-v3)))
|
|
|
|
|
(home-page "https://github.com/stretchr/testify")
|
|
|
|
|
(synopsis "Go helper library for tests and invariant checking")
|
|
|
|
|
(description "This package provide many tools for testifying that your
|
|
|
|
|
code will behave as you intend.
|
|
|
|
|
|
|
|
|
|
Features include:
|
|
|
|
|
@itemize
|
|
|
|
|
@item Easy assertions
|
|
|
|
|
@item Mocking
|
|
|
|
|
@item HTTP response trapping
|
|
|
|
|
@item Testing suite interfaces and functions.
|
|
|
|
|
@end itemize")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2023-10-19 01:28:54 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; Avoid adding new packages to the end of this file. To reduce the chances
|
|
|
|
|
;;; of a merge conflict, place them above by existing packages with similar
|
|
|
|
|
;;; functionality or similar names.
|
|
|
|
|
;;;
|