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

matryer/moq

Interface mocking tool for go generate observed · 2026-08-28

github.com/matryer/moq · homepage · Go · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

75/100

  • Activity 73
  • Release rhythm 63
  • Longevity 100
How is this computed?

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

  • gap_med: 81
  • age_days: 3656
  • days_rel: 166
  • days_push: 166
  • n_releases_24m: 6

Full methodology

Adoption not part of the score

2208 stars · 135 forks observed · 2026-08-28

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

Moq is a Go code generation tool that creates mock structs from any Go interface for use in unit tests. It integrates with go generate and produces structs with function fields for each interface method, enabling per-test mock behavior.

Use cases

  • generate mocks for go interfaces
  • reduce boilerplate when writing go unit tests
  • mock dependencies in go tests via go generate
  • verify interface method calls in tests
  • create test doubles for interfaces

When to choose

  • you write Go unit tests with interface-based dependencies
  • you want mocks generated automatically via go generate
  • you prefer lightweight function-field mocks over reflection-based mocking frameworks

When to avoid

  • you need a full mocking framework with expectation DSLs
  • your project is not written in Go
  • you prefer hand-written fakes or stubs

Facets

cli-tool · maturity active

mocking testing cli developer-tools testing developer-tools go cli cross-platform go-generate codegen unit-testing interface-mocks command-line

2 sources

Member repositories

RepositoryRoleHealth v2
matryer/moqmain75

For agents

markdown · JSON · MCP: product_card(name="matryer/moq")

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