Automic VaultAutomic Vault

brew

Install counterfeiter with Homebrew

Tool for generating self-contained, type-safe test doubles in go. Version 6.12.2 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install counterfeiter

local Homebrew formula metadata

overview

Package summary

Tool for generating self-contained, type-safe test doubles in go

Commands and aliases

  • counterfeiter

history

Project history and usage

counterfeiter is a Go code generator for creating self-contained, type-safe test doubles from interfaces.

Project history

The public repository was created in 2014. Its README frames the project around a Go-specific testing problem: fake implementations are useful for unit tests but cannot be generated automatically at runtime in Go.

The project has continued through a v6 release line, with current documentation using Go modules and Go tool dependencies.

Adoption history

counterfeiter's documented workflow follows Go ecosystem conventions: add it as a tool dependency, place `go:generate` or `counterfeiter:generate` directives near interfaces, and regenerate fakes with `go generate`.

The README notes that the project has largely been maintained by the community, which fits its role as a small but durable testing utility rather than a framework-owned generator.

How it is used

Typical use is to generate fakes for interfaces in the same module or for third-party interfaces, then import the generated `foofakes` package in tests to inspect call counts, arguments, and stubbed return values.

Why package nerds care

For package maintainers, counterfeiter is a good example of a Go CLI whose preferred installation changed with Go tooling: Homebrew can ship a binary, but the upstream docs now prefer module-pinned tool dependencies for reproducible generation.

Timeline

  • 2014: Public GitHub repository created.
  • 2024: v6.8.x through v6.11.x releases published.
  • 2026: v6.12.2 release published.

Related projects

  • go generate
  • Go modules
  • Go tool dependencies

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.
  • Installs with 1 runtime dependencies.

Recommended review

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

executables

Installed executables

CommandKindExposureNote
counterfeitercliglobal 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 version6.12.2
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv6.12.2

https://github.com/maxbrunsfeld/counterfeiter

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:counterfeiter
Version6.12.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/counterfeiter
Homepagehttps://github.com/maxbrunsfeld/counterfeiter
Repositoryhttps://github.com/maxbrunsfeld/counterfeiter
Upstream docshttps://github.com/maxbrunsfeld/counterfeiter#readme
LicenseMIT
Source archivehttps://github.com/maxbrunsfeld/counterfeiter/archive/refs/tags/v6.12.2.tar.gz
Last updated2026-06-22T14:03:05-07:00
Pulseupdated
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 Namecounterfeiter
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

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 package history
  • package relationship graph
  • package version freshness
  • package-page enrichment