Another cool golang idiom for writing consistent unit test code that I learned from the @litestreamio source.
I didn't recognize the benefit at first, but it's nice to have all of your test assertions fit a regular, recognizable pattern.
Michael Lynch's personal Mastodon instance
I didn't recognize the benefit at first, but it's nice to have all of your test assertions fit a regular, recognizable pattern.