MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / MockNameTypes

Function MockNameTypes

pkg/sql/sem/tree/testutils.go:28–33  ·  view source on GitHub ↗

MockNameTypes populates presetTypesForTesting for a test.

(types map[string]*types.T)

Source from the content-addressed store, hash-verified

26
27// MockNameTypes populates presetTypesForTesting for a test.
28func MockNameTypes(types map[string]*types.T) func() {
29 presetTypesForTesting = types
30 return func() {
31 presetTypesForTesting = nil
32 }
33}
34
35// SampleDatum is intended to be a more lightweight version of RandDatum for
36// when you just need one consistent example of a datum.

Callers 1

TestNormalizeExprFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNormalizeExprFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…