MCPcopy Index your code
hub / github.com/coder/coder / TestOpen_Panic

Function TestOpen_Panic

coderd/database/dbtestutil/postgres_test.go:106–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestOpen_Panic(t *testing.T) {
107 t.Skip("unskip this to manually test that we don't leak a database into postgres")
108 t.Parallel()
109
110 _, err := dbtestutil.Open(t)
111 require.NoError(t, err)
112 panic("now check SELECT datname FROM pg_database;")
113}
114
115func TestOpen_Timeout(t *testing.T) {
116 t.Skip("unskip this and set a short timeout to manually test that we don't leak a database into postgres")

Callers

nothing calls this directly

Calls 2

OpenFunction · 0.92
SkipMethod · 0.80

Tested by

no test coverage detected