Closed GoogleCodeExporter closed 9 years ago
I'm not sure how this would work. After one thread blocks on this mock call and
the test finishes, how would we kill the blocking thread and reclaim its
resources?
Original comment by awre...@gmail.com
on 14 Sep 2011 at 9:52
This is already possible with the Do method.
mockSocket.EXPECT().Read().Do(func() { ... })
Replace "..." with whatever mechanism you'd prefer (e.g. a chan).
Original comment by dsymo...@golang.org
on 19 Sep 2011 at 12:46
Original issue reported on code.google.com by
awre...@gmail.com
on 12 Sep 2011 at 6:48