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

Function TestRollupExpression_SQL

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

Source from the content-addressed store, hash-verified

354}
355
356func TestRollupExpression_SQL(t *testing.T) {
357 r := &RollupExpression{Expressions: []Expression{&Identifier{Name: "a"}, &Identifier{Name: "b"}}}
358 if r.SQL() != "ROLLUP(a, b)" {
359 t.Errorf("got: %s", r.SQL())
360 }
361}
362
363func TestCubeExpression_SQL(t *testing.T) {
364 c := &CubeExpression{Expressions: []Expression{&Identifier{Name: "a"}}}

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected