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

Function TestCreateSqliteFolder

database/database_test.go:46–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestCreateSqliteFolder(t *testing.T) {
47 tmpDir := test.NewTmpDir("gotify_testcreatesqlitefolder")
48 defer tmpDir.Clean()
49
50 db, err := New("sqlite3", tmpDir.Path("somepath/testdb.db"), "defaultUser", "defaultPass", 5, true)
51 assert.Nil(t, err)
52 assert.DirExists(t, tmpDir.Path("somepath"))
53 db.Close()
54}
55
56func TestWithAlreadyExistingSqliteFolder(t *testing.T) {
57 tmpDir := test.NewTmpDir("gotify_testwithexistingfolder")

Callers

nothing calls this directly

Calls 5

CleanMethod · 0.95
PathMethod · 0.95
NewTmpDirFunction · 0.92
NewFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…