package time import ( "testing" lua "github.com/yuin/gopher-lua" ) func TestApi(t *testing.T) { state := lua.NewState() PreLoadGo(state) if err := state.DoFile("../testScript/test_time_api.lua"); err != nil { t.Fatalf("execute test: %s\n", err.Error()) } }