24 lines
538 B
Plaintext
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)
|
|
})
|
|
|
|
}
|
|
}
|