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

Function TestJoin_UnsupportedStatement

pkg/transform/joins_test.go:61–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestJoin_UnsupportedStatement(t *testing.T) {
62 stmt := mustParse(t, "DELETE FROM users")
63 err := Apply(stmt, AddJoin("LEFT", "orders", nil))
64 if err == nil {
65 t.Fatal("expected error for DELETE")
66 }
67}
68
69func TestAddJoin_InvalidType(t *testing.T) {
70 stmt := mustParse(t, "SELECT * FROM users")

Callers

nothing calls this directly

Calls 3

mustParseFunction · 0.85
ApplyFunction · 0.85
AddJoinFunction · 0.85

Tested by

no test coverage detected