MCPcopy Create free account
hub / github.com/NextDotID/proof_server / TestMain

Function TestMain

controller/main_test.go:28–42  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

26}
27
28func TestMain(m *testing.M) {
29 config.Init("../config/config.test.json")
30 model.Init()
31 Init()
32
33 twitter.Init()
34 keybase.Init()
35 ethereum.Init()
36 github.Init()
37 discord.Init()
38
39 before_each(nil)
40
41 os.Exit(m.Run())
42}
43
44func APITestCall(engine *gin.Engine, method, url string, body any, response any) *httptest.ResponseRecorder {
45 body_bytes, _ := json.Marshal(body)

Callers

nothing calls this directly

Calls 9

InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.92
InitFunction · 0.70
before_eachFunction · 0.70

Tested by

no test coverage detected