MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / TestQueries

Function TestQueries

examples/ondeck/postgresql/db_test.go:143–154  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func TestQueries(t *testing.T) {
144 t.Parallel()
145
146 uri := local.PostgreSQL(t, []string{"schema"})
147 db, err := sql.Open("postgres", uri)
148 if err != nil {
149 t.Fatalf("%s: %s", uri, err)
150 }
151 defer db.Close()
152
153 runOnDeckQueries(t, New(db))
154}

Callers

nothing calls this directly

Calls 5

PostgreSQLFunction · 0.92
OpenMethod · 0.80
runOnDeckQueriesFunction · 0.70
NewFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected