(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 24 | type NodePrintVisitor struct { |
| 25 | } |
nothing calls this directly
no test coverage detected