go-mockery

SKILL.md

go-mockery

  1. Install mockery dependency if not exists: go get github.com/vektra/mockery.
  2. Install testify if not already installed: github.com/stretchr/testify.

When to use

I you need implement tests in golang with mocking features.

Instructions

  1. Create mocks of required interfaces using a mockery configuration file and the command mockery. See the example for more information: references/examples/.mockery.yaml.
  2. Create tests using mocks and testify. See the example for more information: references/examples/main_test.go.
  3. Run tests to check if all it's working good.

References

See more information here

Weekly Installs
1
First Seen
6 days ago
Installed on
windsurf1
amp1
cline1
opencode1
cursor1
kimi-cli1