(t *testing.T)
| 662 | } |
| 663 | |
| 664 | func TestGetSchema_DatabaseNotFound(t *testing.T) { |
| 665 | s := newTestServerWithMock(t, mockListDatabases(employeeDB())) |
| 666 | |
| 667 | result, _, err := s.handleGetSchema(testContext(), nil, SchemaInput{ |
| 668 | Database: "nonexistent", |
| 669 | }) |
| 670 | require.NoError(t, err) |
| 671 | require.True(t, result.IsError) |
| 672 | |
| 673 | text := result.Content[0].(*mcpsdk.TextContent).Text |
| 674 | require.Contains(t, text, "DATABASE_NOT_FOUND") |
| 675 | } |
| 676 | |
| 677 | func TestGetSchema_AmbiguousDatabase(t *testing.T) { |
| 678 | databases := []map[string]any{ |
nothing calls this directly
no test coverage detected