Automic VaultAutomic Vault

brew

Install mockery with Homebrew, apt, MacPorts, scoop, zypper

Mock code autogenerator for Golang. Version 3.7.1 via Homebrew; verified 2026-06-15.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install mockery

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install mockery

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

Linux

Debian aptverified · 92%
sudo apt install mockery

Debian stable package indexes · mockery · source: deb.debian.org

openSUSE zypperverified · 92%
sudo zypper install mockery

openSUSE Tumbleweed package metadata · mockery · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/mockery

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

overview

Package summary

Mock code autogenerator for Golang

Commands and aliases

  • mockery

history

Project history and usage

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.

Project history

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.

How it is used

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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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

executables

Installed executables

CommandKindExposureNote
mockerycliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.7.1
manager updated2026-06-15
local dataok
upstreamcurrent
latest detectedv3.7.1

https://github.com/vektra/mockery

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:mockery
Version3.7.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/mockery
Homepagehttps://vektra.github.io/mockery/
Repositoryhttps://github.com/vektra/mockery
Upstream docshttps://github.com/vektra/mockery#readme
LicenseBSD-3-Clause
Source archivehttps://github.com/vektra/mockery/archive/refs/tags/v3.7.1.tar.gz
Last updated2026-06-15T10:20:21-04:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemockery
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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.4

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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mockery
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: mockery from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

mockery

sudo port install mockery
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment