mockery
mockery copied to clipboard
A mock code autogenerator for Go
Hey, Following up from #639 where I submitted template function support to the config file. I came back to this feature today in another repository, and I ended up wasting...
The v3 branch should not allow legacy config semantics anymore, only `packages`.
https://vektra.github.io/mockery/features/#return-value-providers The `Second form` should be completely removed in favor of the new `First form`.
Description ------------- For the interfaces ```golang type Builder[T any] interface { Build() (T, error) } type Thing interface { DoStuff() } ``` I'd like to mock `Builder` behavior as ```golang...
Description ------------- Added InterfaceFile to available fields in .mockery.yaml template I would like to name the mock file similarly to the interface file. Currently there is no way to know...
PLEASE READ ------------- DO NOT submit tickets without _first_ using the latest version of Golang, clearing your local golang package cache, and re-building mockery using the _latest_ Golang version and...
Description ------------- Fix mock files and directory getting created in disk when dry-run mode is enabled. - Fixes #769 (issue) ## Type of change - [x] Bug fix (non-breaking change...
This is not an issue, but a discussion about mocking. There used to be lots of code in our legacy codebase, lacking unit tests. We are gradually adding test to...
Mockery Version -------- `v2.42.0` Golang Version -------------- `go1.22.0 amd64` Installation Method ------------------- - [ ] Binary Distribution - [ ] Docker - [ ] brew - [x] go install -...
PLEASE READ ------------- DO NOT submit tickets without _first_ using the latest version of Golang, clearing your local golang package cache, and re-building mockery using the _latest_ Golang version and...