4 ms·
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 de
by MrDarcy 2y ago
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.