MCPcopy Index your code
hub / github.com/XiaoMi/Gaea / TestNodeToString

Function TestNodeToString

parser/yy_parser_test.go:11–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestNodeToString(t *testing.T) {
12 tableName := "tb1"
13 d := &driver.ValueExpr{}
14 d.SetValue(tableName)
15 s, err := NodeToStringWithoutQuote(d)
16 if err != nil {
17 t.Fatal(err)
18 }
19 if s != tableName {
20 t.Errorf("table name not equal, expect: %s, actual: %s", tableName, s)
21 }
22}
23
24type NodePrintVisitor struct {
25}

Callers

nothing calls this directly

Calls 4

SetValueMethod · 0.95
NodeToStringWithoutQuoteFunction · 0.85
FatalMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected