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

Function TestGroupingSetsExpression_SQL

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

Source from the content-addressed store, hash-verified

368}
369
370func TestGroupingSetsExpression_SQL(t *testing.T) {
371 g := &GroupingSetsExpression{Sets: [][]Expression{
372 {&Identifier{Name: "a"}},
373 {&Identifier{Name: "b"}, &Identifier{Name: "c"}},
374 }}
375 sql := g.SQL()
376 if !strings.Contains(sql, "GROUPING SETS") {
377 t.Errorf("got: %s", sql)
378 }
379}
380
381func TestWindowFrameSQL(t *testing.T) {
382 // Test through SelectStatement with window spec that has frame

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected