MCPcopy
hub / github.com/tinode/chat / TestCreateDb

Function TestCreateDb

server/db/postgres/tests/postgres_test.go:52–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50var dummyUid2 = types.Uid(54321)
51
52func TestCreateDb(t *testing.T) {
53 if err := adp.CreateDb(config.Reset); err != nil {
54 t.Fatal(err)
55 }
56 // Saved db is closed, get a fresh one.
57 db = adp.GetTestDB().(*pgxpool.Pool)
58}
59
60// ================== Create tests ================================
61func TestUserCreate(t *testing.T) {

Callers

nothing calls this directly

Calls 2

CreateDbMethod · 0.65
GetTestDBMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…