← All writing

Mocking

1 article

How to mock? Go Way.

How to use small interfaces, structs, and hand-written test doubles to isolate dependencies and write focused unit tests with Go's standard library.