MCPcopy
hub / github.com/pingcap/tidb / MustQuery

Function MustQuery

pkg/server/internal/testserverclient/server_client.go:2909–2916  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, cli *TestServerClient, conn *sql.Conn, sql string)

Source from the content-addressed store, hash-verified

2907}
2908
2909func MustQuery(ctx context.Context, t *testing.T, cli *TestServerClient, conn *sql.Conn, sql string) {
2910 rs, err := conn.QueryContext(ctx, sql)
2911 require.NoError(t, err)
2912 if rs != nil {
2913 cli.Rows(t, rs)
2914 rs.Close()
2915 }
2916}
2917
2918type sqlWithErr struct {
2919 stmt *sql.Stmt

Callers 1

runTestInSchemaStateFunction · 0.85

Calls 3

QueryContextMethod · 0.65
RowsMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected