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

Function TestAddSelectStar

pkg/transform/columns_test.go:57–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestAddSelectStar(t *testing.T) {
58 stmt := mustParse(t, "SELECT id FROM users")
59 err := Apply(stmt, AddSelectStar())
60 if err != nil {
61 t.Fatal(err)
62 }
63 out := format(stmt)
64 assertContains(t, out, "*")
65}
66
67func TestRemoveColumn_Nonexistent(t *testing.T) {
68 stmt := mustParse(t, "SELECT id, name FROM users")

Callers

nothing calls this directly

Calls 5

mustParseFunction · 0.85
ApplyFunction · 0.85
AddSelectStarFunction · 0.85
assertContainsFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected