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

Function TestExtractMetadataInternal_EmptySQL

pkg/mcp/tools_internal_test.go:170–175  ·  view source on GitHub ↗

--- extractMetadataInternal ---

(t *testing.T)

Source from the content-addressed store, hash-verified

168// --- extractMetadataInternal ---
169
170func TestExtractMetadataInternal_EmptySQL(t *testing.T) {
171 _, err := extractMetadataInternal("")
172 if err == nil {
173 t.Fatal("expected error for empty sql")
174 }
175}
176
177func TestExtractMetadataInternal_WithJoins(t *testing.T) {
178 data, err := extractMetadataInternal("SELECT u.id, o.total FROM users u JOIN orders o ON u.id = o.user_id")

Callers

nothing calls this directly

Calls 1

extractMetadataInternalFunction · 0.85

Tested by

no test coverage detected