FICHA · AUR

mockgen

GoMock is a mocking framework for the Go programming language.

  • code-generation-tool
  • CLI
  • Dev
  • Launchable
  • Runs in terminal
official+codex · reviewed · Jun 2, 2026 description in en

Description

Go interfaces can be turned into mock implementations for tests using the GoMock generator. Developers install this tool when Go test code needs generated mocks compatible with the GoMock framework.

It generates test support code, not application behavior. Keep generated files synchronized with interfaces and review mocks that shape important test expectations.

How to run

mockgen

Commands: mockgen

Permissions

Permissions not analysed for this source yet.