refactor: game funcs moved to controller
This commit is contained in:
@@ -66,7 +66,7 @@ func c(t *testing.T, f func(p func(*controller.Param), g func() *controller.Cont
|
||||
assert.FailNow(t, "c: GenerateGame", err)
|
||||
return
|
||||
}
|
||||
g := func() *controller.Controller {
|
||||
ctl := func() *controller.Controller {
|
||||
c, err := controller.NewController(p)
|
||||
if err != nil {
|
||||
assert.FailNow(t, "c: NewController", err)
|
||||
@@ -80,5 +80,5 @@ func c(t *testing.T, f func(p func(*controller.Param), g func() *controller.Cont
|
||||
c.Cache = controller.NewCache(g)
|
||||
return c
|
||||
}
|
||||
f(p, g)
|
||||
f(p, ctl)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user