macOS
brew install counterfeiterlocal Homebrew formula metadata
brew
counterfeiter のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install counterfeiterlocal Homebrew formula metadata
概要
Tool for generating self-contained, type-safe test doubles in go
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
counterfeiter | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/maxbrunsfeld/counterfeiter
インストールメタデータ
| パッケージキー | brew:counterfeiter |
|---|---|
| バージョン | 6.12.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/counterfeiter |
| ホームページ | https://github.com/maxbrunsfeld/counterfeiter |
| リポジトリ | https://github.com/maxbrunsfeld/counterfeiter |
| 上流ドキュメント | https://github.com/maxbrunsfeld/counterfeiter#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/maxbrunsfeld/counterfeiter/archive/refs/tags/v6.12.2.tar.gz |
| 最終更新 | 2026-06-22T14:03:05-07:00 |
| Pulse | updated |
| 依存関係 | go |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.