Go 言語のプログラムのテストでは、テーブル駆動テストと呼ばれる書き方をすることが多いです。シンプルに例を挙げると以下のような形。 func TestAdd(t *testing.T) { cases := []struct{ title string inLhs int64 inRhs int64 want int64 }{ { name: "1 + 1 = 2", inLhs: 1, inRhs 1, want: 2, }, } for _, tt := range cases { t.Run(tt.title, func(t *testing.T) { if got := Add(tt.…