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

Function TestGetSchema_MissingDatabase

backend/api/mcp/tool_schema_test.go:757–762  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

755}
756
757func TestGetSchema_MissingDatabase(t *testing.T) {
758 s := newTestServerWithMock(t, http.NotFoundHandler())
759 _, _, err := s.handleGetSchema(context.Background(), nil, SchemaInput{})
760 require.Error(t, err)
761 require.Contains(t, err.Error(), "database is required")
762}
763
764func TestGetSchema_StableSortOrder(t *testing.T) {
765 // Two schemas (out of order), each with a few tables (out of order).

Callers

nothing calls this directly

Calls 3

newTestServerWithMockFunction · 0.85
handleGetSchemaMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected