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

Function TestSecurityScanInternal_EmptySQL

pkg/mcp/tools_internal_test.go:235–240  ·  view source on GitHub ↗

--- securityScanInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

233// --- securityScanInternal ---
234
235func TestSecurityScanInternal_EmptySQL(t *testing.T) {
236 _, err := securityScanInternal("")
237 if err == nil {
238 t.Fatal("expected error for empty sql")
239 }
240}
241
242func TestSecurityScanInternal_CleanSQL(t *testing.T) {
243 data, err := securityScanInternal("SELECT id FROM users WHERE id = 42")

Callers

nothing calls this directly

Calls 1

securityScanInternalFunction · 0.85

Tested by

no test coverage detected