macOS
brew install gotestslocal Homebrew formula metadata
安装
brew install gotestslocal Homebrew formula metadata
nix profile install nixpkgs#gotestsnixpkgs package indexes · pkgs/by-name/go/gotests/package.nix · 来源: api.github.com
概览
Automatically generate Go test boilerplate from your source code
历史
gotests is a Go test-boilerplate generator. It analyzes functions and methods and emits table-driven test scaffolding, fitting the Go community's preference for generated but editable test code.
The repository was created in January 2016 and published early 1.x releases in 2016. The README describes the tool as a generator for table-driven tests and documents command-line filters for exported functions, named tests, recursive package traversal, templates, and writing generated tests back to files.
The README highlights integrations with editor and IDE workflows, including Sublime Text, Emacs, Vim, Atom, Visual Studio Code, and GoLand. That adoption pattern made gotests useful as both a terminal command and an editor action for quickly producing test skeletons.
Typical usage is to run gotests against files or packages, optionally selecting specific functions, exported APIs, custom templates, or testify-style output. Later releases added full Go generics support and an optional local-LLM mode through Ollama for generating test cases.
gotests is the sort of package that shows how Go tooling tends to compose: it is not a test framework, but a small generator that feeds ordinary go test workflows and leaves normal Go source behind.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gotests | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/cweill/gotests
安装元数据
| 软件包键 | brew:gotests |
|---|---|
| 版本 | 1.9.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gotests |
| 主页 | https://github.com/cweill/gotests |
| 仓库 | https://github.com/cweill/gotests |
| 上游文档 | https://github.com/cweill/gotests#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/cweill/gotests/archive/refs/tags/v1.9.0.tar.gz |
| 最后更新 | 2026-06-13T23:34:57+02:00 |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gotests |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gotests
nix profile install nixpkgs#gotests来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.