MCPcopy Create free account
hub / github.com/bytebase/bytebase / makeMetadataResponse

Function makeMetadataResponse

backend/api/mcp/tool_schema_test.go:19–24  ·  view source on GitHub ↗

--- Fixture builders (mirror the JSON wire format of DatabaseMetadata proto) ---

(schemas ...map[string]any)

Source from the content-addressed store, hash-verified

17// --- Fixture builders (mirror the JSON wire format of DatabaseMetadata proto) ---
18
19func makeMetadataResponse(schemas ...map[string]any) map[string]any {
20 return map[string]any{
21 "name": "instances/prod-pg/databases/employee_db/metadata",
22 "schemas": schemas,
23 }
24}
25
26func makeSchema(name string, tables ...map[string]any) map[string]any {
27 return map[string]any{

Calls

no outgoing calls

Tested by

no test coverage detected