Test Doubles in Go Without a Mocking Framework: 4 Patterns
📰 Dev.to · Gabriel Anhaia
Hand-rolled stubs, configurable fakes, httptest.Server, and testcontainers-go cover almost every Go test you will write. No mocking framework needed.
Hand-rolled stubs, configurable fakes, httptest.Server, and testcontainers-go cover almost every Go test you will write. No mocking framework needed.