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

Function TestCubeExpression_SQL

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

Source from the content-addressed store, hash-verified

361}
362
363func TestCubeExpression_SQL(t *testing.T) {
364 c := &CubeExpression{Expressions: []Expression{&Identifier{Name: "a"}}}
365 if c.SQL() != "CUBE(a)" {
366 t.Errorf("got: %s", c.SQL())
367 }
368}
369
370func TestGroupingSetsExpression_SQL(t *testing.T) {
371 g := &GroupingSetsExpression{Sets: [][]Expression{

Callers

nothing calls this directly

Calls 2

SQLMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected