News for hackers. Stuff that matters.
Re:Don't Be Afraid of Types by MrDarcy on Saturday March 22, 2025 @10:58AM (#43446126)
In Go at least you simply define an interface and use it as the receiver then inject whatever mock object you want.

The mock itself may simply be a new type defined in your test case.

There are no comments on this comment yet.