Re:Mocking time and testing event loops in Go
by jonathanoliver on Monday May 25, 2020 @10:46AM
(#23301603)
Correct. In my use case, I just need a simple replacement for time.Now(). If I needed more (time.After, for example), there's a point that bringing in an external dependency makes sense.
[ Parent
| on HN ]
There are no comments on this comment yet.