mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
tests/monitor_workspaces.rs (22 tests) over the recording stub platform: ensure_workspace_count (grows with default workspaces, never shrinks, leaves the focus), focus_workspace (last_focused_workspace bookkeeping including focusing the focused one, creating every workspace up to a focused index past the end, the empty monitor), the known workspace name (without a known name names stay; with one only the focused workspace takes it, and an EXISTING workspace's name is overwritten at every focus although the comment says only at creation: pinned as it is, inherited from the Windows tree), remove_workspace_by_idx (index not moved, past-the-end focuses idx-1 creating workspaces, empty monitor gets a default one), remove_workspaces, add_container with and without a workspace index and the error cases, the focused layout only while tiling, and the JSON of last_focused_workspace and a round trip. Verified: cargo test -p komorebi-core --test monitor_workspaces, 22 passed. No non-test source changed.