MCPcopy
hub / github.com/sqlc-dev/sqlc / TestPrepared

Function TestPrepared

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

Source from the content-addressed store, hash-verified

146}
147
148func TestPrepared(t *testing.T) {
149 t.Parallel()
150
151 sdb, cleanup := sqltest.SQLite(t, []string{"schema"})
152 defer sdb.Close()
153 defer cleanup()
154
155 q, err := Prepare(context.Background(), sdb)
156 if err != nil {
157 t.Fatal(err)
158 }
159
160 runOnDeckQueries(t, q)
161}
162
163func TestQueries(t *testing.T) {
164 t.Parallel()

Callers

nothing calls this directly

Calls 4

SQLiteFunction · 0.92
PrepareFunction · 0.70
runOnDeckQueriesFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected