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

Function TestReplaceTable_UnsupportedStatement

pkg/transform/tables_test.go:107–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestReplaceTable_UnsupportedStatement(t *testing.T) {
108 stmt := mustParse(t, "INSERT INTO users (name) VALUES ('bob')")
109 err := Apply(stmt, ReplaceTable("users", "accounts"))
110 if err == nil {
111 t.Fatal("expected error for INSERT")
112 }
113}

Callers

nothing calls this directly

Calls 3

mustParseFunction · 0.85
ApplyFunction · 0.85
ReplaceTableFunction · 0.85

Tested by

no test coverage detected