dev-go/gotests - 1.9.0 (gentoo-zh)

Search

Install

Install this version:

emerge -a =dev-go/gotests-1.9.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-go/gotests-1.9.0

Or alternatively:

emerge --autounmask-write -a =dev-go/gotests-1.9.0

Package Information

Description:
Automatically generate Go test boilerplate from your source code
Homepage:
https://github.com/cweill/gotests
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
1.9.0 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Automatically generate Go test boilerplate from your source code"
HOMEPAGE="https://github.com/cweill/gotests"
SRC_URI="https://github.com/cweill/gotests/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/gentoo-zh-drafts/gotests/releases/download/v${PV}/${P}-vendor.tar.xz"
S="${WORKDIR}/${P}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"

DEPEND="dev-lang/go"
RDEPEND="${DEPEND}"

src_compile() {
	ego build -o "bin/${PN}" "./${PN}"
}

src_test() {
	ego test ./...
}

src_install() {
	dobin "bin/${PN}"
}

Inherited Eclasses

Dependencies

DEPEND

dev-lang/go

RDEPEND

dev-lang/go

Manifest for 1.9.0

Type File Size Source URLs
DIST gotests-1.9.0-vendor.tar.xz 174564 bytes https://github.com/gentoo-zh-drafts/gotests/releases/download/v1.9.0/gotests-1.9.0-vendor.tar.xz
DIST gotests-1.9.0.tar.gz 89337 bytes https://github.com/cweill/gotests/archive/refs/tags/v1.9.0.tar.gz