Making Go Tests Nice & Tidy
Having clear, easy-to-understand and rock-solid test preconditions is paramount. It’s like making sure your car lights and battery are working before swapping your credit card and signing up for the annual car inspection. Continue readingStop Fighting Your Go Tests: Simplify and Clarify
This time, we’re rolling up our sleeves to simplify the test setup, pick Go types that actually make sense, and stop confusing readers with constantly changing names. Continue readingHandling Go Errors In Tests
Errors in Go are like the STOP sign. They send a strong signal to avoid disasters. Just like the Go error yelling don’t trust returned value, don’t use it.
Continue readingCritical First Step in Go Tests
“I have two news for you, bad and worse,” said the mechanic. “The battery is dead and I won’t get a new one until Monday. Forget about your annual inspection today,” he continued. “But…” you started. “There is no but.” he cut short.
No setup, no testing. Just like in your Go program.
Continue reading