MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestRoundtripAST_SQL

Function TestRoundtripAST_SQL

pkg/sql/ast/roundtrip_test.go:85–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestRoundtripAST_SQL(t *testing.T) {
86 a := ast.AST{Statements: []ast.Statement{&ast.SelectStatement{Columns: []ast.Expression{&ast.Identifier{Name: "1"}}}}}
87 if got := a.SQL(); got != "SELECT 1" {
88 t.Errorf("AST.SQL() = %q, want %q", got, "SELECT 1")
89 }
90}

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected