package data import ( "fmt" "testing" cherryProfile "github.com/cherry-game/cherry/profile" ) func TestMain(m *testing.M) { _, err := cherryProfile.Init("../../etc/profile/dev.json", "999") if err != nil { panic(err) } c := NewConfigs( GameDebug, ) c.Init() c.OnAfterInit() m.Run() c.OnBeforeStop() c.OnStop() } func TestLoad(t *testing.T) { for _, row := range GameDebug.maps { fmt.Printf("%+v\n", row) } }