Closed
Description
I would like to write tests for an app that uses a lot go-github
.
For instance I would like to mock some methods in the client.*Services
structs. Is this possible with the current usage of structs ? Wouldn't it be preferable that the client struct holds some interfaces rather than some structs ? With interfaces, mocking is very easy with struct embedding.
Metadata
Metadata
Assignees
Labels
No labels