# Installer counterfeiter avec Homebrew

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de counterfeiter pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:counterfeiter
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install counterfeiter
```

  Preuve: local Homebrew formula metadata

## Faits du paquet

- **Clé du paquet:** brew:counterfeiter
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/counterfeiter>
- **Version:** 6.12.2
- **Résumé source:** Tool for generating self-contained, type-safe test doubles in go
- **Page d'accueil:** <https://github.com/maxbrunsfeld/counterfeiter>
- **Dépôt:** <https://github.com/maxbrunsfeld/counterfeiter>
- **Licence:** MIT
- **Archive source:** <https://github.com/maxbrunsfeld/counterfeiter/archive/refs/tags/v6.12.2.tar.gz>
- **Dernière mise à jour:** 2026-07-25T14:20:51-04:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- counterfeiter (cli)
- counterfeiter (alias)

## Dépendances

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 6.12.2
- gestionnaire mis à jour: 2026-07-25
- données locales: OK
- dépôt amont: https://github.com/maxbrunsfeld/counterfeiter
- dernière version détectée: v6.12.2 (à jour)
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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

### Sources

- <https://github.com/maxbrunsfeld/counterfeiter>
- <https://api.github.com/repos/maxbrunsfeld/counterfeiter>
- <https://github.com/maxbrunsfeld/counterfeiter/releases>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **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:** head, stable


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/fr/brew/go/) - Runtime dependency declared by Homebrew.
- [mockery](https://pkg.so/fr/brew/mockery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go, testing.
- [mockolo](https://pkg.so/fr/brew/mockolo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, testing.
- [protoc-gen-go-grpc](https://pkg.so/fr/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [richgo](https://pkg.so/fr/brew/richgo/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gor](https://pkg.so/fr/brew/gor/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [fake-gcs-server](https://pkg.so/fr/brew/fake-gcs-server/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [lcov](https://pkg.so/fr/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [bats-core](https://pkg.so/fr/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [ifacemaker](https://pkg.so/fr/brew/ifacemaker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.
- [trpc-cli](https://pkg.so/fr/npm/trpc-cli/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/counterfeiter.yml](https://github.com/mxcl/pkgdb/blob/main/combined/counterfeiter.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
