Another cool golang idiom for writing consistent unit test code that I learned from the @litestreamio source.

Follow

I didn't recognize the benefit at first, but it's nice to have all of your test assertions fit a regular, recognizable pattern.

Sign in to participate in the conversation
Michael Lynch's Mastodon

Michael Lynch's personal Mastodon instance