2 ms·
Design components based on interfaces. Use dependency injection, Testify [0] for asserts and mocks, and Mockery (based on Testify) [1] to generate mocks. [0] h
by closeparen 9y ago
Design components based on interfaces. Use dependency injection, Testify [0] for asserts and mocks, and Mockery (based on Testify) [1] to generate mocks.
[0] https://github.com/stretchr/testify https://github.com/stretchr/testify
[1] https://github.com/vektra/mockery https://github.com/vektra/mockery