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

Function TestOrderByNullsLast

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

Source from the content-addressed store, hash-verified

777}
778
779func TestOrderByNullsLast(t *testing.T) {
780 stmt := &SelectStatement{
781 Columns: []Expression{&Identifier{Name: "x"}},
782 From: []TableReference{{Name: "t"}},
783 OrderBy: []OrderByExpression{{Expression: &Identifier{Name: "a"}, Ascending: true, NullsFirst: covBoolPtr(false)}},
784 }
785 sql := stmt.SQL()
786 if !strings.Contains(sql, "NULLS LAST") {
787 t.Errorf("got: %s", sql)
788 }
789}

Callers

nothing calls this directly

Calls 3

SQLMethod · 0.95
covBoolPtrFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected