Skip to content

Instantly share code, notes, and snippets.

@grantseltzer
Created February 2, 2021 20:44
Show Gist options
  • Save grantseltzer/bd69a8652e1ccb6bed3219c9e991f6ab to your computer and use it in GitHub Desktop.
Save grantseltzer/bd69a8652e1ccb6bed3219c9e991f6ab to your computer and use it in GitHub Desktop.
Scaffolding for pretty much every go unit tests
package main
import "testing"
func TestXXX(t *testing.T) {
testCases := []struct {
testName string
}{
{
testName: "foo",
},
{},
}
for _, testcase := range testCases {
t.Run(testcase.testName, func(t *testing.T) {
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment