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

Function Test_WithDefault

test/testdb/database_test.go:13–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func Test_WithDefault(t *testing.T) {
14 db := testdb.NewDBWithDefaultUser(t)
15 if user, err := db.GetUserByName("admin"); assert.NoError(t, err) {
16 assert.NotNil(t, user)
17 }
18 db.Close()
19}
20
21func TestDatabaseSuite(t *testing.T) {
22 suite.Run(t, new(DatabaseSuite))

Callers

nothing calls this directly

Calls 3

NewDBWithDefaultUserFunction · 0.92
GetUserByNameMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…