Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled errors #558

Open
michalzurawski opened this issue Oct 13, 2017 · 0 comments
Open

Unhandled errors #558

michalzurawski opened this issue Oct 13, 2017 · 0 comments

Comments

@michalzurawski
Copy link
Contributor

Current Gohan has 419 unhandled errors:

  1. cli/cli.go:80:9: app.Run(os.Args)
  2. cli/cli.go:239:32: manager.LoadSchemasFromFiles(schemaFile, metaSchemaFile)
  3. cli/cli.go:240:39: manager.OrderedLoadSchemasFromFiles(strings.Split(multipleSchemaFiles, ";"))
  4. cli/cli.go:354:17: server.Resync(dbConn, sync)
  5. cli/cli.go:640:9: s.Run()
  6. cli/cli_test.go:38:12: os.Setenv(useEtcdEnv, "true")
  7. cli/cli_test.go:76:14: os.Unsetenv(useEtcdEnv)
  8. cli/cli_test.go:107:18: etcdSync.Lock(syncMigrationsPath, true)
  9. cli/cli_test.go:110:20: etcdSync.Unlock(syncMigrationsPath)
  10. cli/client/client.go:167:16: tmpl.Execute(buf, schemaForTemplate)
  11. cli/client/client.go:178:15: tmpl.Execute(buf, schema)
  12. cli/client/client.go:187:14: tmpl.Execute(buf, entry)
  13. cli/client/client_suite_test.go:34:14: os.Unsetenv("OS_AUTH_URL")
  14. cli/client/client_suite_test.go:35:14: os.Unsetenv("OS_USERNAME")
  15. cli/client/client_suite_test.go:36:14: os.Unsetenv("OS_USERID")
  16. cli/client/client_suite_test.go:37:14: os.Unsetenv("OS_PASSWORD")
  17. cli/client/client_suite_test.go:38:14: os.Unsetenv("OS_TENANT_ID")
  18. cli/client/client_suite_test.go:39:14: os.Unsetenv("OS_TENANT_NAME")
  19. cli/client/client_suite_test.go:40:14: os.Unsetenv("OS_DOMAIN_ID")
  20. cli/client/client_suite_test.go:41:14: os.Unsetenv("OS_DOMAIN_NAME")
  21. cli/client/client_test.go:47:12: os.Setenv("OS_USERNAME", "admin")
  22. cli/client/client_test.go:48:12: os.Setenv("OS_PASSWORD", "password")
  23. cli/client/client_test.go:49:12: os.Setenv("OS_TENANT_NAME", "admin")
  24. cli/client/client_test.go:50:12: os.Setenv("OS_AUTH_URL", server.URL()+"/v2.0/")
  25. cli/client/client_test.go:51:12: os.Setenv("GOHAN_SERVICE_NAME", "gohan")
  26. cli/client/client_test.go:52:12: os.Setenv("GOHAN_REGION", "RegionOne")
  27. cli/client/client_test.go:53:12: os.Setenv("GOHAN_SCHEMA_URL", "/gohan/v0.1/schemas")
  28. cli/client/client_test.go:54:12: os.Setenv("GOHAN_CACHE_SCHEMAS", "false")
  29. cli/client/client_test.go:55:12: os.Setenv("GOHAN_CACHE_TIMEOUT", "1ns")
  30. cli/client/client_test.go:59:14: os.Unsetenv("OS_USERNAME")
  31. cli/client/client_test.go:60:14: os.Unsetenv("OS_PASSWORD")
  32. cli/client/client_test.go:61:14: os.Unsetenv("OS_TENANT_NAME")
  33. cli/client/client_test.go:62:14: os.Unsetenv("OS_AUTH_URL")
  34. cli/client/client_test.go:63:14: os.Unsetenv("GOHAN_SERVICE_NAME")
  35. cli/client/client_test.go:64:14: os.Unsetenv("GOHAN_REGION")
  36. cli/client/client_test.go:65:14: os.Unsetenv("GOHAN_SCHEMA_URL")
  37. cli/client/client_test.go:66:14: os.Unsetenv("GOHAN_ENDPOINT_URL")
  38. cli/client/client_test.go:78:15: os.Unsetenv("GOHAN_SERVICE_NAME")
  39. cli/client/client_test.go:79:15: os.Unsetenv("GOHAN_REGION")
  40. cli/client/client_test.go:80:13: os.Setenv("GOHAN_ENDPOINT_URL", "127.0.0.1")
  41. cli/client/client_test.go:87:15: os.Unsetenv("GOHAN_SERVICE_NAME")
  42. cli/client/client_test.go:94:15: os.Unsetenv("GOHAN_REGION")
  43. cli/client/client_test.go:101:15: os.Unsetenv("GOHAN_SCHEMA_URL")
  44. cli/client/client_test.go:108:13: os.Setenv("GOHAN_CACHE_SCHEMAS", "potato")
  45. cli/client/client_test.go:115:13: os.Setenv("GOHAN_CACHE_TIMEOUT", "this is not time")
  46. cli/client/client_test.go:152:13: os.Setenv("GOHAN_SERVICE_NAME", "wrong")
  47. cli/client/client_test.go:168:13: os.Setenv("GOHAN_CACHE_SCHEMAS", "true")
  48. cli/client/client_test.go:169:13: os.Setenv("GOHAN_CACHE_PATH", "wrong")
  49. cli/client/client_test.go:179:13: os.Setenv("GOHAN_CACHE_SCHEMAS", "true")
  50. cli/client/client_test.go:180:13: os.Setenv("GOHAN_CACHE_PATH", file)
  51. cli/client/client_test.go:204:16: os.Unsetenv("OS_AUTH_URL")
  52. cli/client/client_test.go:211:16: os.Unsetenv("OS_USERNAME")
  53. cli/client/client_test.go:218:16: os.Unsetenv("OS_PASSWORD")
  54. cli/client/client_test.go:249:14: os.Setenv("GOHAN_SERVICE_NAME", "wrongGohanServiceName")
  55. cli/client/client_test.go:454:16: file.Close()
  56. cli/client/client_test.go:463:22: file.WriteString(fmt.Sprintf("%s", cacheString))
  57. cli/client/client_test.go:475:16: file.Chmod(os.ModeDir)
  58. cli/client/client_test.go:500:22: file.WriteString(fmt.Sprintf("%s", cacheString))
  59. cli/client/client_test.go:1110:20: json.Unmarshal([]byte(result), &resultJSON)
  60. cli/client/client_test.go:1122:20: json.Unmarshal([]byte(result), &resultJSON)
  61. cli/client/client_test.go:1179:20: json.Unmarshal([]byte(result), &resultJSON)
  62. cli/client/client_test.go:1191:20: json.Unmarshal([]byte(result), &resultJSON)
  63. cli/client/client_test.go:1245:20: json.Unmarshal([]byte(result), &resultJSON)
  64. cli/client/client_test.go:1261:20: json.Unmarshal([]byte(result), &resultJSON)
  65. cli/client/client_test.go:1274:20: json.Unmarshal([]byte(result), &resultJSON)
  66. cli/client/client_test.go:1433:20: json.Unmarshal([]byte(result), &resultJSON)
  67. cli/client/client_test.go:1451:20: json.Unmarshal([]byte(result), &resultJSON)
  68. cli/client/commands.go:346:27: defer response.Body.Close()
  69. cli/client/commands.go:348:39: json.NewDecoder(response.Body).Decode(&result)
  70. cli/client/output.go:103:15: table.Append(resourceSlice)
  71. cli/client/output.go:117:15: table.Append([]string{property.Title, fmt.Sprint(resource[property.ID])})
  72. cli/generate.go:56:16: defer db.Close()
  73. cli/generate.go:79:16: defer db.Close()
  74. cli/generate.go:102:19: config.ReadConfig(configFile)
  75. cli/generate.go:128:10: os.Mkdir(etcDir, 0777)
  76. cli/generate.go:129:10: os.Mkdir(dbDir, 0777)
  77. cli/generate.go:130:10: os.Mkdir(migrationDir, 0777)
  78. cli/generate.go:147:15: util.SaveFile(schemaPath, map[string]interface{}{
  79. cli/migrate.go:88:20: defer sync.Unlock(syncMigrationsPath)
  80. cli/migrate.go:169:21: config.ReadConfig(configFile)
  81. cli/migrate.go:181:32: manager.LoadSchemasFromFiles(schemaFile)
  82. cli/migrate.go:255:34: envManager.RegisterEnvironment(s.ID, env)
  83. cli/template.go:174:10: os.Chdir(path.Dir(configFile))
  84. cli/template.go:175:16: defer os.Chdir(pwd)
  85. cli/template.go:222:19: ioutil.WriteFile(outputPath, []byte(output), 0644)
  86. cli/template.go:235:19: ioutil.WriteFile(outputPath, []byte(output), 0644)
  87. cli/template.go:251:19: ioutil.WriteFile(outputPathForResource, []byte(output), 0644)
  88. converter/schema/schema.go:87:16: property.Parse(item.ParseContext{
  89. converter/schema/schema_test.go:648:22: other.schema.Parse(item.ParseContext{
  90. db/db.go:72:12: tx.Close()
  91. db/db.go:87:12: tx.Close()
  92. db/db.go:166:32: resource.PopulateDefaults()
  93. db/db_test.go:57:13: os.Remove(conn)
  94. db/db_test.go:121:13: os.Remove(conn)
  95. db/db_test.go:134:12: tx.Close()
  96. db/db_test.go:170:14: tx.Close()
  97. db/db_test.go:384:19: defer os.Remove("test_data/conv_in.db")
  98. db/db_test.go:386:24: db.InitDBWithSchemas("sqlite3", "test_data/conv_out.db", false, false, true)
  99. db/db_test.go:389:19: defer os.Remove("test_data/conv_out.db")
  100. db/db_test.go:391:24: db.InitDBWithSchemas("yaml", "test_data/conv_verify.yaml", false, false, true)
  101. db/db_test.go:394:19: defer os.Remove("test_data/conv_verify.yaml")
  102. db/db_test.go:402:20: defer inTx.Close()
  103. db/db_test.go:408:24: defer verifyTx.Close()
  104. db/db_test.go:427:19: defer os.Remove("test_data/conv_in.db")
  105. db/db_test.go:429:24: db.InitDBWithSchemas("sqlite3", "test_data/conv_out.db", false, false, true)
  106. db/db_test.go:432:19: defer os.Remove("test_data/conv_out.db")
  107. db/db_test.go:435:19: defer os.Remove("test_data/conv_verify.yaml")
  108. db/db_test.go:452:13: tx.Commit()
  109. db/db_test.go:453:12: tx.Close()
  110. db/db_test.go:466:12: tx.Close()
  111. db/db_test.go:489:13: os.Remove(deadlockDbName)
  112. db/file/file.go:63:9: db.load()
  113. db/file/file.go:148:9: db.load()
  114. db/file/file.go:153:10: db.write()
  115. db/file/file.go:164:9: db.load()
  116. db/file/file.go:176:10: db.write()
  117. db/file/file.go:196:9: db.load()
  118. db/file/file.go:206:10: db.write()
  119. db/file/file.go:251:9: db.load()
  120. db/sql/sql.go:315:13: db.DB.Exec("PRAGMA foreign_keys = ON;")
  121. db/sql/sql.go:332:13: db.DB.Close()
  122. db/sql/sql.go:342:13: rawTx.Exec("PRAGMA foreign_keys = ON;")
  123. db/sql/sql.go:370:13: rawTx.Exec("PRAGMA foreign_keys = ON;")
  124. db/sql/sql.go:472:19: defer rows.Close()
  125. db/sql/sql.go:846:18: defer rows.Close()
  126. db/sql/sql.go:943:18: defer rows.Close()
  127. db/sql/sql.go:955:15: rows.MapScan(data)
  128. db/sql/sql.go:1076:18: defer rows.Close()
  129. db/sql/sql.go:1082:14: rows.MapScan(data)
  130. db/sql/sql_isolation_test.go:57:23: db.InitDBWithSchemas(dbType, conn, true, false, false)
  131. db/sql/sql_test.go:59:23: db.InitDBWithSchemas(dbType, conn, true, false, false)
  132. db/sql/sql_test.go:64:21: db.CopyDBResources(fixtureDB, dbc, true)
  133. db/sql/sql_test.go:71:11: tx.Close()
  134. db/sql/sql_test.go:76:13: os.Remove(conn)
  135. db/sql/sql_test.go:339:15: defer f.Close()
  136. examples/goext_example/example.go:57:25: env.Core().TriggerEvent(entryCustomAction, goext.MakeContext().WithISchema(schema).WithSchemaID("entry"))
  137. extension/extension_suite_test.go:60:12: os.Remove(testDBFile1)
  138. extension/extension_suite_test.go:61:12: os.Remove(testDBFile2)
  139. extension/framework/framework.go:213:16: filepath.Walk(path, func(filePath string, info os.FileInfo, err error) error {
  140. extension/framework/framework_test.go:34:20: defer os.RemoveAll(rootDir)
  141. extension/framework/framework_test.go:47:23: defer testFile1.Close()
  142. extension/framework/framework_test.go:51:23: defer testFile2.Close()
  143. extension/framework/framework_test.go:55:23: defer testFile3.Close()
  144. extension/framework/framework_test.go:59:28: defer irrelevantFile.Close()
  145. extension/framework/goplugin/runner/reporter.go:234:18: table.AppendBulk(data)
  146. extension/framework/runner/environment.go:85:10: env.Load(env.testFileName, string(env.testSource))
  147. extension/framework/runner/environment.go:136:11: tx.Close()
  148. extension/framework/runner/environment.go:213:13: tx.Commit()
  149. extension/framework/runner/environment.go:214:12: tx.Close()
  150. extension/framework/runner/environment.go:227:13: env.VM.Set(name, object)
  151. extension/framework/runner/environment.go:231:17: env.VM.Otto.Run(function GohanTrigger(event, context) { gohan_handle_event(event, context); })
  152. extension/framework/runner/environment.go:263:18: call.Otto.Call("Fail", nil, "Return() should be called with exactly one argument")
  153. extension/framework/runner/environment.go:265:18: call.Otto.Call("Fail", nil, "Throw() should be called with exactly one argument")
  154. extension/framework/runner/environment.go:276:12: env.VM.Set(functionName, func(call otto.FunctionCall) otto.Value {
  155. extension/framework/runner/environment.go:282:18: call.Otto.Call("Fail", nil, err)
  156. extension/framework/runner/environment.go:287:18: call.Otto.Call("Fail", nil, fmt.Sprintf("Unexpected call to %s(%v)", functionName, readableArguments))
  157. extension/framework/runner/environment.go:293:18: call.Otto.Call("Fail", nil, fmt.Sprintf("Wrong arguments for call %s(%v), expected %s",
  158. extension/framework/runner/environment.go:348:34: destinationFunction.Object().Set(variableName, variableValue)
  159. extension/framework/runner/environment.go:447:41: environmentManager.RegisterEnvironment(schemaID, env)
  160. extension/framework/runner/runner.go:167:17: env.HandleEvent("exit", map[string]interface{}{})
  161. extension/gohanscript/debugger.go:54:14: d.conn.Write([]byte(message))
  162. extension/gohanscript/debugger.go:88:14: d.conn.Close()
  163. extension/gohanscript/debugger.go:89:16: d.server.Close()
  164. extension/gohanscript/env_test.go:47:17: defer tx.Close()
  165. extension/gohanscript/gohanscript_suite_test.go:102:12: os.Remove(dbFile)
  166. extension/gohanscript/lib/command.go:46:12: os.Chdir(util.MaybeString(chdir))
  167. extension/gohanscript/lib/command.go:47:18: defer os.Chdir(currentDir)
  168. extension/gohanscript/lib/gohan.go:66:13: tx.Commit()
  169. extension/gohanscript/lib/gohan.go:68:11: tx.Close()
  170. extension/gohanscript/lib/http.go:77:23: defer resp.Body.Close()
  171. extension/gohanscript/lib/http.go:84:16: json.Unmarshal(body, &contents)
  172. extension/gohanscript/lib/httpserver.go:94:20: json.Unmarshal(reqData, &data)
  173. extension/gohanscript/lib/httpserver.go:98:11: vm.Run(context.Data())
  174. extension/gohanscript/lib/httpserver.go:107:19: json.Unmarshal(reqData, &data)
  175. extension/gohanscript/lib/httpserver.go:139:13: vm.Run(context.Data())
  176. extension/gohanscript/lib/httpserver.go:148:13: vm.Run(context.Data())
  177. extension/gohanscript/lib/httpserver.go:157:13: vm.Run(context.Data())
  178. extension/gohanscript/lib/httpserver.go:164:13: vm.Run(context.Data())
  179. extension/gohanscript/lib/httpserver.go:204:9: s.Start()
  180. extension/gohanscript/lib/job.go:45:6: f(newContext)
  181. extension/gohanscript/minigo_compile.go:46:13: compileFile(f)
  182. extension/gohanscript/minigo_compile.go:72:12: code.Eval(context, 0, stack)
  183. extension/gohanscript/minigo_eval.go:338:16: code.Eval(context, offset+1, stack)
  184. extension/gohanscript/minigo_eval.go:346:16: code.Eval(context, offset+1, stack)
  185. extension/gohanscript/stmt.go:102:20: yaml.UnmarshalNode(node, &rawData)
  186. extension/gohanscript/stmtparser.go:133:5: f(newContext)
  187. extension/gohanscript/tools/gen.go:200:16: os.MkdirAll(exportPath, os.ModePerm)
  188. extension/gohanscript/tools/gen.go:201:21: ioutil.WriteFile(outputFile, []byte(output), os.ModePerm)
  189. extension/gohanscript/tools/gen.go:207:21: ioutil.WriteFile(outputFile, out, os.ModePerm)
  190. extension/gohanscript/tools/gen.go:223:9: app.Run(os.Args)
  191. extension/gohanscript/util.go:77:10: pp.Print(obj)
  192. extension/gohanscript/util.go:108:5: f(localItem)
  193. extension/gohanscript/util.go:119:15: filepath.Walk(abs,
  194. extension/gohanscript/value.go:102:15: CacheTemplate(t.param, t.templates, t.minigos)
  195. extension/gohanscript/vm_test.go:41:13: vm.LoadFile("./examples/fib.yaml")
  196. extension/gohanscript/vm_test.go:43:9: vm.Run(map[string]interface{}{})
  197. extension/gohanscript/wrapper.go:120:4: f(context)
  198. extension/goplugin/core_test.go:54:43: Expect(func() { env.Core().TriggerEvent("dummyEventName", ctx) }).To(Panic())
  199. extension/goplugin/environment.go:615:11: env.Start()
  200. extension/goplugin/integration_tests/end_to_end_test.go:75:15: conn.Close()
  201. extension/goplugin/integration_tests/end_to_end_test.go:194:23: defer resp.Body.Close()
  202. extension/goplugin/integration_tests/end_to_end_test.go:196:16: decoder.Decode(&data)
  203. extension/goplugin/integration_tests/end_to_end_test.go:235:11: os.Remove(fileName)
  204. extension/goplugin/js_integration_test.go:84:39: extensionManager.RegisterEnvironment("test", ottoEnv)
  205. extension/goplugin/js_integration_test.go:99:41: extensionManager.UnRegisterEnvironment("test")
  206. extension/goplugin/schemas.go:191:17: defer tx.Close()
  207. extension/goplugin/schemas.go:305:17: defer tx.Close()
  208. extension/goplugin/schemas.go:337:21: schema.assignField(propertyName, field, value)
  209. extension/goplugin/schemas.go:416:16: defer tx.Close()
  210. extension/goplugin/schemas.go:539:17: defer tx.Close()
  211. extension/goplugin/schemas.go:602:17: defer tx.Close()
  212. extension/goplugin/schemas.go:649:12: tx.Commit()
  213. extension/goplugin/schemas_test.go:76:12: os.Remove(dbFile)
  214. extension/goplugin/schemas_test.go:165:12: tx.Close()
  215. extension/goplugin/schemas_test.go:278:23: defer firstTx.Close()
  216. extension/goplugin/schemas_test.go:294:25: defer secondTx.Close()
  217. extension/goplugin/schemas_test.go:308:18: firstTx.Commit()
  218. extension/goplugin/schemas_test.go:318:23: defer firstTx.Close()
  219. extension/goplugin/schemas_test.go:334:25: defer secondTx.Close()
  220. extension/goplugin/schemas_test.go:348:18: firstTx.Commit()
  221. extension/goplugin/sync_test.go:57:13: sut.Watch(ctx, "key", time.Hour, 1)
  222. extension/goplugin/test_data/ext_good/ext_good.go:78:25: env.Core().TriggerEvent("js_listener", ctx)
  223. extension/goplugin/transaction_test.go:53:12: os.Remove(DbFile)
  224. extension/otto/gohan_core.go:108:44: envManager.HandleEventInAllEnvironments(context, event, schemaID)
  225. extension/otto/gohan_core.go:118:10: vm.Set(name, object)
  226. extension/otto/gohan_crypto.go:17:9: mod.Set("createHash", func(call otto.FunctionCall) otto.Value {
  227. extension/otto/gohan_crypto.go:32:13: wrapped.Set("update", func(call otto.FunctionCall) otto.Value {
  228. extension/otto/gohan_crypto.go:45:13: wrapped.Set("digest", func(call otto.FunctionCall) otto.Value {
  229. extension/otto/gohan_db.go:64:14: tx.Close()
  230. extension/otto/gohan_db.go:91:29: defer transaction.Close()
  231. extension/otto/gohan_db.go:148:20: defer tx.Close()
  232. extension/otto/gohan_db.go:193:29: defer transaction.Close()
  233. extension/otto/gohan_db.go:226:20: defer tx.Close()
  234. extension/otto/gohan_db.go:264:29: defer transaction.Close()
  235. extension/otto/gohan_db.go:295:29: defer transaction.Close()
  236. extension/otto/gohan_db.go:321:29: defer transaction.Close()
  237. extension/otto/gohan_db.go:347:29: defer transaction.Close()
  238. extension/otto/gohan_db.go:373:29: defer transaction.Close()
  239. extension/otto/gohan_db.go:398:29: defer transaction.Close()
  240. extension/otto/gohan_db.go:438:10: vm.Set(name, object)
  241. extension/otto/gohan_db.go:572:27: resource.PopulateDefaults()
  242. extension/otto/gohan_file.go:97:10: vm.Set(name, object)
  243. extension/otto/gohan_fs.go:30:8: fs.Set("readFileSync", func(call otto.FunctionCall) otto.Value {
  244. extension/otto/gohan_fs.go:47:8: fs.Set("existsSync", func(call otto.FunctionCall) otto.Value {
  245. extension/otto/gohan_fs.go:58:8: fs.Set("writeFileSync", func(call otto.FunctionCall) otto.Value {
  246. extension/otto/gohan_fs.go:72:8: fs.Set("readdirSync", func(call otto.FunctionCall) otto.Value {
  247. extension/otto/gohan_fs.go:88:8: fs.Set("mkdirSync", func(call otto.FunctionCall) otto.Value {
  248. extension/otto/gohan_global.go:31:10: vm.Set(name, object)
  249. extension/otto/gohan_hook.go:23:10: vm.Set(name, object)
  250. extension/otto/gohan_logging.go:79:10: vm.Set(name, object)
  251. extension/otto/gohan_logging.go:91:9: vm.Set("LOG_LEVEL", logLevels)
  252. extension/otto/gohan_logging.go:93:9: vm.Set("LOG_MODULE", "gohan.extension."+env.Name)
  253. extension/otto/gohan_remote.go:78:12: s.Close()
  254. extension/otto/gohan_remote.go:152:12: s.Close()
  255. extension/otto/gohan_remote.go:185:10: vm.Set(name, object)
  256. extension/otto/gohan_resource_management.go:179:10: vm.Set(name, object)
  257. extension/otto/gohan_sync.go:233:10: vm.Set(name, object)
  258. extension/otto/gohan_util.go:264:14: t.Execute(b, data)
  259. extension/otto/gohan_util.go:346:10: vm.Set(name, object)
  260. extension/otto/gohan_util.go:410:23: defer resp.Body.Close()
  261. extension/otto/gohan_vm.go:30:10: mod.Set(funName, func(call otto.FunctionCall) otto.Value {
  262. extension/otto/gohan_vm.go:35:9: mod.Set("runInThisContext", func(call otto.FunctionCall) otto.Value {
  263. extension/otto/otto.go:132:12: env.VM.Set(objectID, object)
  264. extension/otto/otto.go:311:8: vm.Set("gohan_closers", closers)
  265. extension/otto/otto.go:329:19: clone.VM.Otto.Set("gohan_closers", []io.Closer{})
  266. extension/otto/otto_suite_test.go:110:12: os.Remove(dbFile)
  267. extension/otto/otto_test.go:66:17: defer tx.Close()
  268. extension/otto/otto_test.go:231:30: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  269. extension/otto/otto_test.go:262:30: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  270. extension/otto/otto_test.go:307:30: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  271. extension/otto/otto_test.go:343:30: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  272. extension/otto/otto_test.go:459:21: req.Body.Close()
  273. extension/otto/otto_test.go:692:42: environmentManager.RegisterEnvironment(schemaID, env)
  274. extension/otto/otto_test.go:709:44: environmentManager.UnRegisterEnvironment(schemaID)
  275. extension/otto/otto_test.go:710:18: defer tx.Close()
  276. extension/otto/otto_test.go:732:21: defer tx.Commit()
  277. extension/otto/otto_test.go:760:31: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  278. extension/otto/otto_test.go:777:21: defer tx.Commit()
  279. extension/otto/otto_test.go:804:31: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  280. extension/otto/otto_test.go:852:31: env.LoadExtensionsForPath(extensions, timeLimit, timeLimits, "test_path")
  281. extension/otto/otto_test.go:879:20: defer tx.Close()
  282. extension/otto/otto_test.go:896:22: defer tx.Close()
  283. extension/otto/otto_test.go:915:22: defer tx.Close()
  284. extension/otto/otto_test.go:931:22: defer tx.Close()
  285. extension/otto/otto_test.go:949:22: defer tx.Close()
  286. extension/otto/otto_test.go:968:22: defer tx.Close()
  287. extension/otto/otto_test.go:1037:20: defer tx.Close()
  288. extension/otto/otto_test.go:1055:22: defer tx.Close()
  289. extension/otto/otto_test.go:1077:22: defer tx.Close()
  290. extension/otto/otto_test.go:1096:22: defer tx.Close()
  291. extension/otto/otto_test.go:1117:22: defer tx.Close()
  292. extension/otto/otto_test.go:1163:20: defer tx.Close()
  293. extension/otto/otto_test.go:1181:22: defer tx.Close()
  294. extension/otto/otto_test.go:1203:22: defer tx.Close()
  295. extension/otto/otto_test.go:1225:22: defer tx.Close()
  296. extension/otto/otto_test.go:1283:20: defer tx.Close()
  297. extension/otto/otto_test.go:1301:22: defer tx.Close()
  298. extension/otto/otto_test.go:1322:22: defer tx.Close()
  299. extension/otto/otto_test.go:1343:22: defer tx.Close()
  300. extension/otto/otto_test.go:1387:22: defer tx.Close()
  301. extension/otto/otto_test.go:1407:20: defer tx.Close()
  302. extension/otto/otto_test.go:1424:22: defer tx.Close()
  303. extension/otto/otto_test.go:1443:22: defer tx.Close()
  304. extension/otto/otto_test.go:1496:20: defer tx.Close()
  305. extension/otto/otto_test.go:1540:44: environmentManager.RegisterEnvironment(curSchemaID, subnetEnv)
  306. extension/otto/otto_test.go:1604:17: tx.Commit()
  307. extension/otto/otto_test.go:1605:16: tx.Close()
  308. extension/otto/otto_test.go:1617:16: tx.Close()
  309. extension/otto/otto_test.go:1643:22: defer tx.Close()
  310. extension/otto/otto_test.go:1791:15: os.Unsetenv("GOHAN_TEST_GET_ENV")
  311. extension/otto/otto_test.go:1795:13: os.Setenv("GOHAN_TEST_GET_ENV", "123")
  312. extension/otto/otto_test.go:1904:19: env.Sync.Delete("/gohan_sync_fetch_test", false)
  313. extension/otto/otto_test.go:1905:19: env.Sync.Update("/gohan_sync_fetch_test", "{}")
  314. extension/otto/otto_test.go:1930:19: env.Sync.Delete("/gohan_sync_watch_test", false)
  315. extension/otto/otto_test.go:1954:19: env.Sync.Delete("/gohan_sync_watch_test", false)
  316. extension/otto/otto_test.go:1957:20: env.Sync.Update("/gohan_sync_watch_test", "{}")
  317. extension/otto/otto_test.go:1985:19: env.Sync.Delete("/gohan_sync_delete_test", false)
  318. extension/otto/otto_test.go:1986:19: env.Sync.Update("/gohan_sync_delete_test", "{}")
  319. extension/otto/otto_test.go:2013:19: env.Sync.Delete("/gohan_sync_delete_test", true)
  320. extension/otto/otto_test.go:2014:19: env.Sync.Update("/gohan_sync_delete_test/child1", "bla")
  321. extension/otto/otto_test.go:2015:19: env.Sync.Update("/gohan_sync_delete_test/child2", "bar")
  322. extension/otto/otto_test.go:2046:12: vm.Set(name, object)
  323. extension/otto/otto_test.go:2063:43: environmentManager.RegisterEnvironment("test_race", env)
  324. log/bufwriter.go:21:18: buffer().WriteTo(dst)
  325. schema/manager.go:392:26: manager.registerSchema(schemaObj)
  326. schema/manager.go:402:21: schemaObj.Extend(baseSchema)
  327. schema/manager.go:498:28: manager.registerNamespace(namespace)
  328. schema/schema_test.go:49:21: config.ReadConfig("../tests/test_legacy_config.yaml")
  329. server/amqp.go:74:21: defer conn.Close()
  330. server/amqp.go:81:19: defer ch.Close()
  331. server/api.go:219:41: environmentManager.RegisterEnvironment(s.ID, env)
  332. server/api.go:442:37: resources.ApplyPolicyForResources(context, s)
  333. server/cron.go:73:12: c.AddFunc(timing, func() {
  334. server/cron.go:85:23: server.sync.Unlock(lockKey)
  335. server/editor.go:220:30: manager.UnRegisterSchema(deletedSchema)
  336. server/editor.go:228:17: util.SaveFile(editableSchemaFile, schemasInFile)
  337. server/editor.go:233:17: server.initDB()
  338. server/editor_test.go:59:15: defer f.Close()
  339. server/middleware/fake.go:229:10: w.Write(serializedToken)
  340. server/middleware/fake.go:240:10: w.Write(serializedToken)
  341. server/middleware/fake.go:246:11: w.Write(serializedToken)
  342. server/resources/resource_management_test.go:102:41: environmentManager.RegisterEnvironment(schemaID, env)
  343. server/resources/resource_management_test.go:108:44: environmentManager.UnRegisterEnvironment(schemaID)
  344. server/resources/resource_management_test.go:109:18: defer tx.Close()
  345. server/resources/resource_management_test.go:397:28: defer transaction.Close()
  346. server/resources/resource_management_test.go:560:28: defer transaction.Close()
  347. server/resources/resource_management_test.go:815:28: defer transaction.Close()
  348. server/resources/resource_management_test.go:1123:28: defer transaction.Close()
  349. server/resources/resource_management_test.go:1268:28: defer transaction.Close()
  350. server/resources/resources_suite_test.go:109:12: os.Remove(dbFile)
  351. server/resync.go:26:12: tx.Close()
  352. server/resync.go:53:13: tl.Resync(resource)
  353. server/server.go:95:29: schemaManager.LoadPolicies(policyList)
  354. server/server.go:119:31: schemaManager.LoadNamespaces(namespaceList)
  355. server/server.go:287:16: server.initDB()
  356. server/server.go:305:22: db.CopyDBResources(inDB, server.db, false)
  357. server/server.go:504:22: go stateWatcher.Run(server.masterCtx)
  358. server/server.go:507:20: go syncWriter.Run(server.masterCtx)
  359. server/server.go:522:21: go syncWatcher.Run(server.masterCtx)
  360. server/server_suite_test.go:78:12: os.Remove(conn)
  361. server/server_test.go:795:19: syncConn.Delete("/config/v2.0/networks/resync-test-net1", false)
  362. server/server_test.go:796:19: syncConn.Delete("/config/v2.0/networks/resync-test-net2", false)
  363. server/server_test.go:797:19: syncConn.Delete("/config/v2.0/subnets/test-subnet1-id", false)
  364. server/server_test.go:851:14: srv.Resync(testDB, syncConn)
  365. server/server_test.go:904:30: manager.LoadSchemasFromFiles("../tests/test_abstract_schema.yaml", "../tests/test_schema.yaml", "../etc/schema/gohan.json")
  366. server/server_test.go:930:14: conn.Close()
  367. server/server_test.go:1037:23: defer resp.Body.Close()
  368. server/server_test.go:1039:16: decoder.Decode(&data)
  369. server/snmp.go:57:19: defer conn.Close()
  370. server/state_watcher.go:98:27: defer watcher.sync.Unlock(lockKey)
  371. server/state_watcher_test.go:55:17: defer tx.Close()
  372. server/state_watcher_test.go:64:17: defer tx.Close()
  373. server/state_watcher_test.go:93:19: defer tx.Close()
  374. server/state_watcher_test.go:129:19: defer tx.Close()
  375. server/state_watcher_test.go:165:19: defer tx.Close()
  376. server/state_watcher_test.go:250:19: defer tx.Close()
  377. server/state_watcher_test.go:275:19: defer tx.Close()
  378. server/state_watcher_test.go:310:19: defer tx.Close()
  379. server/sync_watcher.go:98:29: defer watcher.sync.Unlock(lockKey)
  380. server/sync_watcher.go:257:27: defer watcher.sync.Unlock(lockKey)
  381. server/sync_watcher_test.go:43:17: go watcher.Run(context.Background())
  382. server/sync_watcher_test.go:78:21: defer sync.Delete(processPathPrefix+"/"+newProcessUUID, false)
  383. server/sync_watcher_test.go:105:21: defer sync.Delete(processPathPrefix+"/"+newProcessUUID2, false)
  384. server/sync_writer.go:79:28: defer writer.sync.Unlock(syncPath)
  385. server/sync_writer.go:190:19: json.Unmarshal([]byte(content), &target)
  386. server/sync_writer.go:216:19: json.Unmarshal(([]byte)(body), &data)
  387. server/sync_writer_test.go:44:12: tx.Close()
  388. server/sync_writer_test.go:70:12: tx.Close()
  389. server/sync_writer_test.go:92:13: tx.Close()
  390. server/sync_writer_test.go:118:13: tx.Close()
  391. server/sync_writer_test.go:141:13: tx.Close()
  392. server/sync_writer_test.go:161:13: tx.Close()
  393. server/sync_writer_test.go:184:13: tx.Close()
  394. server/sync_writer_test.go:200:13: tx.Close()
  395. server/sync_writer_test.go:223:13: tx.Close()
  396. server/sync_writer_test.go:239:13: tx.Close()
  397. sync/etcd/etcd.go:77:21: s.etcdClient.Delete(key, prefix)
  398. sync/etcd/etcd.go:170:31: s.etcdClient.CompareAndDelete(path, s.processID, 0)
  399. sync/etcd/etcd.go:181:16: json.Unmarshal([]byte(node.Value), &event.Data)
  400. sync/etcd/etcd.go:236:19: json.Unmarshal([]byte(response.Node.Value), &event.Data)
  401. sync/etcdv3/etcd.go:237:22: s.etcdClient.Revoke(s.withTimeout(), leaseID)
  402. sync/etcdv3/etcd.go:241:61: s.etcdClient.Txn(s.withTimeout()).If(cmp).Then(del).Commit()
  403. sync/etcdv3/etcd.go:317:21: defer session.Close()
  404. sync/etcdv3/etcd.go:354:20: s.etcdClient.Close()
  405. sync/etcdv3/etcd_test.go:33:24: sync.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  406. sync/etcdv3/etcd_test.go:63:24: sync.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  407. sync/etcdv3/etcd_test.go:81:24: sync.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  408. sync/etcdv3/etcd_test.go:125:25: sync0.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  409. sync/etcdv3/etcd_test.go:164:25: sync0.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  410. sync/etcdv3/etcd_test.go:211:24: sync.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  411. sync/etcdv3/etcd_test.go:217:21: sync.etcdClient.Put(context.Background(), path+"/existing", {"existing": true})
  412. sync/etcdv3/etcd_test.go:231:21: sync.etcdClient.Put(context.Background(), path+"/new", {"existing": false})
  413. sync/etcdv3/etcd_test.go:237:24: sync.etcdClient.Delete(context.Background(), path+"/existing")
  414. sync/etcdv3/etcd_test.go:246:24: sync.etcdClient.Delete(context.Background(), "/", etcd.WithPrefix())
  415. util/config_test.go:34:12: os.Setenv("GOHAN_TEST_KEY", "GOHAN_TEST_VALUE")
  416. util/util.go:133:11: t.Execute(outputBuffer, params)
  417. util/util.go:184:24: defer resp.Body.Close()
  418. util/util_test.go:75:11: os.Remove(file)
  419. util/util_test.go:80:17: defer os.Remove(file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant