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

Function TestGetSchema_InvalidIncludeValue

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

Source from the content-addressed store, hash-verified

744}
745
746func TestGetSchema_InvalidIncludeValue(t *testing.T) {
747 s := newTestServerWithMock(t, http.NotFoundHandler())
748
749 _, _, err := s.handleGetSchema(context.Background(), nil, SchemaInput{
750 Database: "employee_db",
751 Include: "everything",
752 })
753 require.Error(t, err)
754 require.Contains(t, err.Error(), "summary|columns|details")
755}
756
757func TestGetSchema_MissingDatabase(t *testing.T) {
758 s := newTestServerWithMock(t, http.NotFoundHandler())

Callers

nothing calls this directly

Calls 3

newTestServerWithMockFunction · 0.85
handleGetSchemaMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected