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

Function TestValidateSQLInternal_EmptySQL

pkg/mcp/tools_internal_test.go:23–28  ·  view source on GitHub ↗

--- validateSQLInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

21// --- validateSQLInternal ---
22
23func TestValidateSQLInternal_EmptySQL(t *testing.T) {
24 _, err := validateSQLInternal("", "")
25 if err == nil {
26 t.Fatal("expected error for empty sql")
27 }
28}
29
30func TestValidateSQLInternal_ValidGeneric(t *testing.T) {
31 data, err := validateSQLInternal("SELECT 1", "")

Callers

nothing calls this directly

Calls 1

validateSQLInternalFunction · 0.85

Tested by

no test coverage detected