Skip to content

Make Workspace::test_new pub(crate), use MultiWorkspace::test_new everywhere - #48813

Merged
rtfeldman merged 1 commit into
re-add-multi-workspacefrom
workspace-test-new-pub-crate
Feb 9, 2026
Merged

Make Workspace::test_new pub(crate), use MultiWorkspace::test_new everywhere#48813
rtfeldman merged 1 commit into
re-add-multi-workspacefrom
workspace-test-new-pub-crate

Conversation

@rtfeldman

@rtfeldman rtfeldman commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Makes Workspace::test_new pub(crate) so it can only be called from within the workspace crate. All external test code now uses MultiWorkspace::test_new instead, which reflects the actual runtime reality where MultiWorkspace is the window root.

Changes

  • Workspace::test_new visibility changed from pub to pub(crate)
  • Added MultiWorkspace::test_add_workspace helper for tests that need additional workspaces
  • Migrated ~285 call sites across 33 external files to use MultiWorkspace::test_new
  • Updated helper functions that took &WindowHandle<Workspace> to take &Entity<Workspace>

Release Notes:

  • N/A

…rywhere

External crates now use MultiWorkspace::test_new instead of Workspace::test_new,
which reflects the actual runtime reality where MultiWorkspace is the window root.

Added MultiWorkspace::test_add_workspace helper for tests that need to create
additional workspaces within a MultiWorkspace.
@rtfeldman
rtfeldman marked this pull request as ready for review February 9, 2026 21:32
@rtfeldman
rtfeldman merged commit b1e8b2d into re-add-multi-workspace Feb 9, 2026
7 of 18 checks passed
@rtfeldman
rtfeldman deleted the workspace-test-new-pub-crate branch February 9, 2026 21:32
mikayla-maki pushed a commit that referenced this pull request Feb 10, 2026
…rywhere (#48813)

Makes `Workspace::test_new` `pub(crate)` so it can only be called from
within the workspace crate. All external test code now uses
`MultiWorkspace::test_new` instead, which reflects the actual runtime
reality where `MultiWorkspace` is the window root.

### Changes
- `Workspace::test_new` visibility changed from `pub` to `pub(crate)`
- Added `MultiWorkspace::test_add_workspace` helper for tests that need
additional workspaces
- Migrated ~285 call sites across 33 external files to use
`MultiWorkspace::test_new`
- Updated helper functions that took `&WindowHandle<Workspace>` to take
`&Entity<Workspace>`

Release Notes:

- N/A
mikayla-maki pushed a commit that referenced this pull request Feb 10, 2026
…rywhere (#48813)

Makes `Workspace::test_new` `pub(crate)` so it can only be called from
within the workspace crate. All external test code now uses
`MultiWorkspace::test_new` instead, which reflects the actual runtime
reality where `MultiWorkspace` is the window root.

- `Workspace::test_new` visibility changed from `pub` to `pub(crate)`
- Added `MultiWorkspace::test_add_workspace` helper for tests that need
additional workspaces
- Migrated ~285 call sites across 33 external files to use
`MultiWorkspace::test_new`
- Updated helper functions that took `&WindowHandle<Workspace>` to take
`&Entity<Workspace>`

Release Notes:

- N/A
mikayla-maki pushed a commit that referenced this pull request Feb 11, 2026
…rywhere (#48813)

Makes `Workspace::test_new` `pub(crate)` so it can only be called from
within the workspace crate. All external test code now uses
`MultiWorkspace::test_new` instead, which reflects the actual runtime
reality where `MultiWorkspace` is the window root.

- `Workspace::test_new` visibility changed from `pub` to `pub(crate)`
- Added `MultiWorkspace::test_add_workspace` helper for tests that need
additional workspaces
- Migrated ~285 call sites across 33 external files to use
`MultiWorkspace::test_new`
- Updated helper functions that took `&WindowHandle<Workspace>` to take
`&Entity<Workspace>`

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant