pkg.soopen package index

brew / 排名 1338

使用 Homebrew, apt, MacPorts, zypper, scoop 安装 mockery

查看 mockery 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mockery

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mockery

MacPorts ports tree · devel/mockery/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install mockery

Debian stable package indexes · mockery · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install mockery

openSUSE Tumbleweed package metadata · mockery · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/mockery

Scoop official bucket manifest trees · bucket/mockery.json · 来源: api.github.com

概览

软件包摘要

Mock code autogenerator for Golang

命令和别名

  • mockery

历史

项目历史与用法

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

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
.mockery.yml.mockery.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
mockery可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本3.7.2
管理器更新时间2026-07-29
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:mockery
版本3.7.2
软件包管理器Homebrew
主页https://vektra.github.io/mockery/
仓库https://github.com/vektra/mockery
最后更新2026-07-29T17:05:00+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

mockery 2.15.0-1+b12

mock code autogenerator for Golang

https://github.com/vektra/mockery

sudo apt install mockery
  • Section: devel
  • Architecture: amd64
  • Source Package: mockery
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mockery
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mockery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

mockery 2.15.0-1build1

mock code autogenerator for Golang

https://github.com/vektra/mockery

sudo apt install mockery
  • Section: universe/devel
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mockery
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mockery from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
zypper95%

mockery 2.53.5-1.7

A mock code autogenerator for Go

https://github.com/vektra/mockery

sudo zypper install mockery
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mockery
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mockery
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: mockery from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

mockery

sudo port install mockery
  • normalized package name match
  • 匹配方式:Mockery
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/mockery/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/mockery

scoop install main/mockery
  • normalized package name match
  • 匹配方式:Mockery
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/mockery.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation