macOS
brew install counterfeiterlocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für counterfeiter in AI-Agent-Workflows.
Installation
brew install counterfeiterlocal Homebrew formula metadata
Überblick
Tool for generating self-contained, type-safe test doubles in go
Verlauf
counterfeiter is a Go code generator for creating self-contained, type-safe test doubles from interfaces.
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.
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.
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.
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
counterfeiter | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/maxbrunsfeld/counterfeiter
Installationsmetadaten
| Paketschlüssel | brew:counterfeiter |
|---|---|
| Version | 6.12.2 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/counterfeiter |
| Homepage | https://github.com/maxbrunsfeld/counterfeiter |
| Repository | https://github.com/maxbrunsfeld/counterfeiter |
| Upstream-Dokumentation | https://github.com/maxbrunsfeld/counterfeiter#readme |
| Lizenz | MIT |
| Quellarchiv | https://github.com/maxbrunsfeld/counterfeiter/archive/refs/tags/v6.12.2.tar.gz |
| Zuletzt aktualisiert | 2026-06-22T14:03:05-07:00 |
| Pulse | updated |
| Abhängigkeiten | go |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | counterfeiter |
| 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 |
|
Quellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.