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

Function TestSecurityScanInternal_CommentBypass

pkg/mcp/tools_internal_test.go:288–295  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

286}
287
288func TestSecurityScanInternal_CommentBypass(t *testing.T) {
289 data, err := securityScanInternal("SELECT * FROM users WHERE id = 1 -- bypass")
290 if err != nil {
291 t.Fatalf("unexpected error: %v", err)
292 }
293 // Comment bypasses may or may not be detected depending on pattern
294 _ = data
295}
296
297// --- lintSQLInternal ---
298

Callers

nothing calls this directly

Calls 2

securityScanInternalFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected