MCPcopy
hub / github.com/gotify/server / BeforeTest

Method BeforeTest

router/router_test.go:36–48  ·  view source on GitHub ↗
(string, string)

Source from the content-addressed store, hash-verified

34}
35
36func (s *IntegrationSuite) BeforeTest(string, string) {
37 mode.Set(mode.TestDev)
38 var err error
39 s.db = testdb.NewDBWithDefaultUser(s.T())
40 assert.Nil(s.T(), err)
41
42 g, closable := Create(s.db.GormDatabase,
43 &model.VersionInfo{Version: "1.0.0", BuildDate: "2018-02-20-17:30:47", Commit: "asdasds"},
44 &config.Configuration{PassStrength: 5},
45 )
46 s.closable = closable
47 s.server = httptest.NewServer(g)
48}
49
50func (s *IntegrationSuite) AfterTest(string, string) {
51 s.closable()

Callers

nothing calls this directly

Calls 3

SetFunction · 0.92
NewDBWithDefaultUserFunction · 0.92
CreateFunction · 0.85

Tested by

no test coverage detected