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

Function TestHandleFormatSQL_InvalidSQL

pkg/mcp/tools_test.go:684–693  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

682}
683
684func TestHandleFormatSQL_InvalidSQL(t *testing.T) {
685 ctx := context.Background()
686 req := makeReq(map[string]any{
687 "sql": ")))((( @@@ !!!",
688 })
689 _, err := handleFormatSQL(ctx, req)
690 if err == nil {
691 t.Fatal("expected error for unparseable SQL, got nil")
692 }
693}
694
695func TestHandleAnalyzeSQL_InvalidSQLPartialResults(t *testing.T) {
696 ctx := context.Background()

Callers

nothing calls this directly

Calls 2

makeReqFunction · 0.85
handleFormatSQLFunction · 0.85

Tested by

no test coverage detected