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

Function TestParseSQLInternal_EmptySQL

pkg/mcp/tools_internal_test.go:123–128  ·  view source on GitHub ↗

--- parseSQLInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

121// --- parseSQLInternal ---
122
123func TestParseSQLInternal_EmptySQL(t *testing.T) {
124 _, err := parseSQLInternal("")
125 if err == nil {
126 t.Fatal("expected error for empty sql")
127 }
128}
129
130func TestParseSQLInternal_SingleStatement(t *testing.T) {
131 data, err := parseSQLInternal("SELECT id FROM users")

Callers

nothing calls this directly

Calls 1

parseSQLInternalFunction · 0.85

Tested by

no test coverage detected