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

Function TestLintSQLInternal_EmptySQL

pkg/mcp/tools_internal_test.go:299–304  ·  view source on GitHub ↗

--- lintSQLInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

297// --- lintSQLInternal ---
298
299func TestLintSQLInternal_EmptySQL(t *testing.T) {
300 _, err := lintSQLInternal("")
301 if err == nil {
302 t.Fatal("expected error for empty sql")
303 }
304}
305
306func TestLintSQLInternal_CleanSQL(t *testing.T) {
307 data, err := lintSQLInternal("SELECT id FROM users")

Callers

nothing calls this directly

Calls 1

lintSQLInternalFunction · 0.85

Tested by

no test coverage detected