goautomock
goautomock copied to clipboard
Race condition when using the generated mocks
The current mocks produce race conditions when using with goroutines, because of the calls counters.
I suggest changing the template for the mocks to embed a sync.RWMutex and adding locks whenever the calls hash is modified/read.