MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / TestParser

Function TestParser

parser_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestParser(t *testing.T) {
12 p, err := parser.ParseOne("CREATE TABLE t (a TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP)")
13 require.NoError(t, err)
14 f := tree.DefaultPrettyCfg()
15 t.Log(f.Pretty(p.AST))
16}

Callers

nothing calls this directly

Calls 3

ParseOneFunction · 0.92
DefaultPrettyCfgFunction · 0.92
PrettyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…