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

Method BeforeTest

test/testdb/database_test.go:30–33  ·  view source on GitHub ↗
(suiteName, testName string)

Source from the content-addressed store, hash-verified

28}
29
30func (s *DatabaseSuite) BeforeTest(suiteName, testName string) {
31 mode.Set(mode.TestDev)
32 s.db = testdb.NewDB(s.T())
33}
34
35func (s *DatabaseSuite) AfterTest(suiteName, testName string) {
36 s.db.Close()

Callers

nothing calls this directly

Calls 2

SetFunction · 0.92
NewDBFunction · 0.92

Tested by

no test coverage detected