# counterfeiter を Homebrew でインストール

counterfeiter のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install counterfeiter
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:counterfeiter
- **パッケージマネージャ:** Homebrew
- **バージョン:** 6.12.2
- **ソース概要:** Tool for generating self-contained, type-safe test doubles in go
- **ホームページ:** <https://github.com/maxbrunsfeld/counterfeiter>
- **リポジトリ:** <https://github.com/maxbrunsfeld/counterfeiter>
- **最終更新:** 2026-07-25T14:20:51-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- counterfeiter (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 6.12.2
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 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

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## ソース

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