Slide 31
Slide 31 text
Copyright (C) GENDA Inc. All Rights Reserved.
func TestMyFooer_Foo(t *testing.T) {
tests := []struct {
name string
b MyFooer
want string
}{
{"case1", MyFooer{}, "Hey"},
{"case2", MyFooer{}, "Foo"}
}
for _, tt := range tests {
// Snip
}
}
31
テストのテンプレート
成功事例