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

golang/mock

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

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

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100

Flags: archived

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: n/a
  • age_days: 4100
  • days_rel: n/a
  • days_push: 968
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

9341 stars · 604 forks observed · 2026-08-28

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

GoMock is a mocking framework for Go that generates mock implementations of interfaces via the mockgen code-generation tool. It integrates with Go's built-in testing package, but the repository is no longer maintained in favor of the go.uber.org/mock fork.

Use cases

  • generate mocks for Go interfaces
  • unit test Go code with mocked dependencies
  • mock database or API interfaces in Go tests
  • set up expectation-based testing in Go
  • replace real dependencies with test doubles in Go

When to choose

  • you are working on a legacy Go codebase already using gomock
  • you need the original gomock API for compatibility with existing generated mocks

When to avoid

  • you are starting a new Go project - use the maintained go.uber.org/mock fork instead
  • you need ongoing bug fixes or support for newer Go versions
  • you prefer hand-written fakes or a different mocking style

Facets

library · maturity abandoned

testing mocking cli testing developer-tools backend go cli cross-platform gomock mock-generation code-generation unit-testing unmaintained

1 source

Member repositories

RepositoryRoleHealth v2
golang/mockmain10

For agents

markdown · JSON · MCP: product_card(name="golang/mock")

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