maraino / go-mock

A mocking framework for the Go Programming Language.
MIT License
35 stars 12 forks source link

add Mutex to work with `go test -race` #10

Closed wadey closed 7 years ago

wadey commented 7 years ago

The race detector complains about races between Called and When invocations. Make using Mock with the race detector easier by adding a Mutex.

maraino commented 7 years ago

👍

willfaught commented 7 years ago

Nice!