Category "gomock"

How to mock a file with interface imported from another file

I try to create a mock of a file with an interface imported from another file. I have try with `aux_files` and `imports` but I did non succeed to have a correc

Optional calls in GoMock

I want to use GoMock to test some code, without coupling my tests too tightly to the actual implementation of the thing under test. But GoMock seems to require

Golang Context Timeout Not Working Via Test

I have some async calls that runs and I'm setting a timeout for all via the context. ctxWithTimeout, cancel := context.WithTimeout(ctx, getTimeoutDuration()) de