macOS
brew install counterfeiterlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de counterfeiter pour les workflows d'agents IA.
installation
brew install counterfeiterlocal Homebrew formula metadata
aperçu
Tool for generating self-contained, type-safe test doubles in go
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
counterfeiter | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/maxbrunsfeld/counterfeiter
métadonnées d'installation
| Clé du paquet | brew:counterfeiter |
|---|---|
| Version | 6.12.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/counterfeiter |
| Page d'accueil | https://github.com/maxbrunsfeld/counterfeiter |
| Dépôt | https://github.com/maxbrunsfeld/counterfeiter |
| Docs amont | https://github.com/maxbrunsfeld/counterfeiter#readme |
| Licence | MIT |
| Archive source | https://github.com/maxbrunsfeld/counterfeiter/archive/refs/tags/v6.12.2.tar.gz |
| Dernière mise à jour | 2026-06-22T14:03:05-07:00 |
| Pulse | updated |
| Dépendances | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
piste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.