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

Function TestFormatSQLInternal_EmptySQL

pkg/mcp/tools_internal_test.go:84–89  ·  view source on GitHub ↗

--- formatSQLInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

82// --- formatSQLInternal ---
83
84func TestFormatSQLInternal_EmptySQL(t *testing.T) {
85 _, err := formatSQLInternal("", 2, false, false)
86 if err == nil {
87 t.Fatal("expected error for empty sql")
88 }
89}
90
91func TestFormatSQLInternal_ValidSQL(t *testing.T) {
92 data, err := formatSQLInternal("select id from users", 4, true, true)

Callers

nothing calls this directly

Calls 1

formatSQLInternalFunction · 0.85

Tested by

no test coverage detected