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

Method GetTestDB

server/db/adapter.go:208–208  ·  view source on GitHub ↗

Testing GetTestDB returns a currently open database connection.

()

Source from the content-addressed store, hash-verified

206
207 // GetTestDB returns a currently open database connection.
208 GetTestDB() any
209}

Callers 7

initFunction · 0.65
TestCreateDbFunction · 0.65
initFunction · 0.65
TestCreateDbFunction · 0.65
initFunction · 0.65
TestCreateDbFunction · 0.65
initFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 7

initFunction · 0.52
TestCreateDbFunction · 0.52
initFunction · 0.52
TestCreateDbFunction · 0.52
initFunction · 0.52
TestCreateDbFunction · 0.52
initFunction · 0.52