Ross ROSS = Recommend OSS · open-source software intelligence for agents

maxbrunsfeld/counterfeiter

A tool for generating self-contained, type-safe test doubles in go observed · 2026-08-28

github.com/maxbrunsfeld/counterfeiter · Go · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

87/100

  • Activity 98
  • Release rhythm 65
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 63
  • age_days: 4488
  • days_rel: 153
  • days_push: 16
  • n_releases_24m: 8

Full methodology

Adoption not part of the score

1140 stars · 101 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

counterfeiter is a Go code generation tool that creates self-contained, type-safe fake implementations (test doubles) of interfaces. It integrates with go generate to keep generated fakes in sync with interface definitions.

Use cases

  • generate fake implementations of Go interfaces for unit tests
  • create type-safe test doubles without writing them by hand
  • keep generated mocks up to date with go generate
  • mock collaborators when unit testing Go objects
  • generate fakes for interfaces in a Go module

When to choose

  • you write Go unit tests and need fakes for interface dependencies
  • you want type-safe, compile-time-checked mocks rather than runtime reflection mocks
  • you prefer generated code committed to your repo via go generate

When to avoid

  • you need dynamic runtime mocking without code generation
  • your project is not using Go modules
  • you prefer hand-written or behavior-driven mock libraries

Facets

cli-tool · maturity active

testing mocking cli testing developer-tools cli go cross-platform test-doubles fakes go-generate type-safe unit-testing code-generation go

1 source

Member repositories

RepositoryRoleHealth v2
maxbrunsfeld/counterfeitermain87

For agents

markdown · JSON · MCP: product_card(name="maxbrunsfeld/counterfeiter")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem