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

uber-go/mock

Some data may be outdated — see provenance labels.

GoMock is a mocking framework for the Go programming language. observed · 2026-10-02

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

Health v2 · maintenance only

69/100

  • Activity 91
  • Release rhythm 28
  • Longevity 90
How is this computed?

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

  • gap_med: 45
  • age_days: 1266
  • days_rel: 428
  • days_push: 56
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

3416 stars · 180 forks observed · 2026-10-02

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/mockmain69

For agents

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

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem