MCPcopy Create free account
hub / github.com/sqlc-dev/sqlc / TestQueries

Function TestQueries

examples/ondeck/mysql/db_test.go:161–172  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestQueries(t *testing.T) {
162 t.Parallel()
163
164 uri := local.MySQL(t, []string{"schema"})
165 db, err := sql.Open("mysql", uri)
166 if err != nil {
167 t.Fatalf("%s: %s", uri, err)
168 }
169 defer db.Close()
170
171 runOnDeckQueries(t, New(db))
172}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…