This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Allow generating loose/dynamic mocks #7
Closed
Description
Multiple mocking framework support both loose/dynamic and strict mocks*.
I propose adding support for generting such mocks as part of the mock generation api
loose := mocks.NewMyDynamicMock(ctrl)
strict := mocks.NewMyMock(ctrl)
or
strict := mocks.NewMyMock(ctrl)
loose := strict.Dynamic = true
Both solution are backward compatible.
I would like to hear your feedback about the idea.
**loose/dynamic - mock that doesn't panic when unregistered method is called