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

Function TestValues_SQL

pkg/sql/ast/sql_coverage_test.go:121–132  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestValues_SQL(t *testing.T) {
122 v := &Values{
123 Rows: [][]Expression{
124 {&LiteralValue{Value: "1"}, &LiteralValue{Value: "'a'"}},
125 {&LiteralValue{Value: "2"}, &LiteralValue{Value: "'b'"}},
126 },
127 }
128 sql := v.SQL()
129 if !strings.Contains(sql, "VALUES") {
130 t.Errorf("got: %s", sql)
131 }
132}
133
134func TestCreateViewStatement_SQL(t *testing.T) {
135 stmt := &CreateViewStatement{

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected