FICHA · AUR

mockery

A mock code autogenerator for Go

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

Description

Go interfaces can get generated mock implementations for tests. Developers install this tool when unit tests need predictable stand-ins for dependencies without writing all mock code by hand.

Generated mocks should be reviewed like source code. Regenerate them when interfaces change so tests do not drift away from real behavior.

How to run

mockery

Commands: mockery

Permissions

Permissions not analysed for this source yet.