MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestQuery_NilQuery

Function TestQuery_NilQuery

backend/common/qb/qb_test.go:105–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

103}
104
105func TestQuery_NilQuery(t *testing.T) {
106 var q *Query
107 q = q.Space("SELECT * FROM users")
108 sql, args, err := q.ToSQL()
109 require.NoError(t, err)
110 require.Equal(t, "SELECT * FROM users", sql)
111 require.Empty(t, args)
112}
113
114func TestQuery_EmptyQuery(t *testing.T) {
115 q := Q()

Callers

nothing calls this directly

Calls 3

SpaceMethod · 0.95
ToSQLMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected