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

uber-go/mock

GoMock is a mocking framework for the Go programming language. observed · 2026-08-28

github.com/uber-go/mock · Go · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

73/100

  • Activity 99
  • Release rhythm 31
  • Longevity 87
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: 55.5
  • age_days: 1218
  • days_rel: 380
  • days_push: 8
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

3399 stars · 176 forks observed · 2026-08-28

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

GoMock (go.uber.org/mock) is a mocking framework for Go that generates mock implementations of interfaces via the mockgen code-generation tool. It is a maintained fork of Google's archived golang/mock, actively maintained by Uber and integrated with Go's built-in testing package.

Use cases

  • generate mocks for Go interfaces
  • unit test Go code with mock dependencies
  • mock database driver interfaces in Go tests
  • replace the abandoned golang/mock project
  • set up go:generate-based mock generation
  • verify expected method calls in Go tests

When to choose

  • you need a mature, actively maintained mocking framework for Go
  • you want generated mocks from interface definitions with source, package, or archive modes
  • you're migrating from Google's unmaintained golang/mock
  • you want tight integration with Go's standard testing package

When to avoid

  • you prefer hand-written fakes or stubs over generated mocks
  • you're not writing Go code
  • you need runtime mocking without code generation
  • you prefer a lightweight assertion-only library without mock generation

Facets

library · maturity active

mocking testing cli testing developer-tools programming-languages go cli cross-platform gomock mockgen unit-testing test-doubles interface-mocking go-testing code-generation

1 source

Member repositories

RepositoryRoleHealth v2
uber-go/mockmain73

For agents

markdown · JSON · MCP: product_card(name="uber-go/mock")

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