macOS
brew install mockerylocal Homebrew formula metadata
sudo port install mockeryMacPorts ports tree · devel/mockery/Portfile · 来源: api.github.com
安装
brew install mockerylocal Homebrew formula metadata
sudo port install mockeryMacPorts ports tree · devel/mockery/Portfile · 来源: api.github.com
sudo apt install mockeryDebian stable package indexes · mockery · 来源: deb.debian.org
sudo zypper install mockeryopenSUSE Tumbleweed package metadata · mockery · 来源: download.opensuse.org
scoop install main/mockeryScoop official bucket manifest trees · bucket/mockery.json · 来源: api.github.com
概览
Mock code autogenerator for Golang
历史
mockery is a Go code generator from the vektra GitHub organization for creating mock implementations of Go interfaces. Its repository was created in 2014 and the README frames the original use case around generating mocks that work with `stretchr/testify/mock`, removing repetitive hand-written mock code in Go tests.
The project documentation broadens that role into a small code-generation framework: mockery inspects Go source, emits implementations for interfaces, supports multiple mock styles, and lets users provide custom templates rendered with typed interface metadata. Configuration via `.mockery.yaml` lets projects select packages and interfaces, which makes it suitable for repeatable generation in CI or local test workflows.
Within package managers, mockery fills the Go-testing generator niche alongside tools such as mockgen and moq. Homebrew packages it as `mockery`, and package records also list Debian, Ubuntu, MacPorts, Scoop, and zypper, matching its role as a developer CLI installed outside an individual Go module when teams want consistent generated mocks across repositories.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.mockery.yml.mockery.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mockery | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/vektra/mockery
安装元数据
| 软件包键 | brew:mockery |
|---|---|
| 版本 | 3.7.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mockery |
| 主页 | https://vektra.github.io/mockery/ |
| 仓库 | https://github.com/vektra/mockery |
| 上游文档 | https://github.com/vektra/mockery#readme |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/vektra/mockery/archive/refs/tags/v3.7.2.tar.gz |
| 最后更新 | 2026-07-23T21:07:55Z |
| 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 | mockery |
| 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 软件包链接分开显示。
mockery 2.15.0-1+b12
mock code autogenerator for Golang
https://github.com/vektra/mockery
sudo apt install mockerymockery 2.15.0-1build1
mock code autogenerator for Golang
https://github.com/vektra/mockery
sudo apt install mockerymockery 2.53.5-1.4
A mock code autogenerator for Go
https://github.com/vektra/mockery
sudo zypper install mockerymockery
sudo port install mockerymain/mockery
scoop install main/mockery来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.