Standard Search
About 41 results
https://rednafi.com/go/mocking-libraries-bleh/ · 23 Jan 2026
Practical patterns for mocking in Go without external libraries. Learn to mock functions, methods, interfaces, HTTP calls, and time using only the standard library
https://dev.leaflet.pub/3mc6nmvhih22f · 11 Jan 2026
Ignore this article it is for testing
https://rednafi.com/system/tap-compare-testing/ · 13 Dec 2025
Master shadow testing for large-scale system migrations. Learn to safely rewrite services by comparing outputs between old and new implementations.
https://rednafi.com/go/test-subprocesses/ · 16 Nov 2025
Test Go subprocesses with the re-exec pattern: spawn your test binary as a subprocess to emulate real command behavior reliably.
https://rednafi.com/go/interface-segregation/ · 1 Nov 2025
Apply SOLID's Interface Segregation Principle in Go with consumer-defined contracts. Learn why small interfaces and implicit implementation matter.
https://rednafi.com/go/organizing-tests/ · 8 Oct 2025
Organize Go tests with in-package, external _test packages, and integration tests. Learn white-box vs black-box testing conventions.
https://rednafi.com/go/subtest-grouping/ · 1 Oct 2025
Organize Go subtests with t.Run nesting and parallel execution. Learn patterns for setup, teardown, and readable test hierarchies.
https://rednafi.com/go/test-state-not-interactions/ · 14 Sep 2025
Avoid brittle AI-generated tests that check implementation details. Write maintainable tests that verify behavior, not method calls.
https://rednafi.com/go/early-return-and-goroutine-leak/ · 7 Sep 2025
Prevent goroutine leaks caused by early returns with unbuffered channels. Learn buffering, draining, errgroup patterns, and goleak testing.
https://rednafi.com/go/lifecycle-management-in-tests/ · 30 Aug 2025
Master Go test lifecycle with t.Cleanup(), subtests, and TestMain. Learn per-test, grouped, and package-wide setup patterns effectively.