Files
dotfiles/emacs/.emacs.d/snippets/go-mode/tt
Fabio Scotto di Santolo 07dfd8687a Added snippets for Emacs
2026-01-07 09:31:19 +01:00

24 lines
538 B
Plaintext

func Test$0 {
tests := []struct {
name string
req string
expected string
}{
{
name: "happy path",
req: "answer to life, the universe and everything"
expected: "42"
}
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
actual := foo(t, tt.req)
assertEquals(t, tt.want, expected)
})
}
}