test(wm): add window manager unit tests

Created a test that creates the WM instance and ensures the instance is
running. The test creates a custom socket and then cleans up the socket
file after completion.

Created a test that creates a WM instance, monitor instance, and
workpace. The tests checks to ensure that the expected workspace is
focused properly.

Included recommended fixes to ensure that the focus_workspace function
is used correctly and that the test accurately checks the workspaces
length, current workspace index, and switching to an existing workspace.
This commit is contained in:
Jerry Kingsbury
2025-03-05 01:39:58 -06:00
committed by LGUG2Z
parent e4f9d8af86
commit f40e80cd61
5 changed files with 103 additions and 2 deletions

10
Cargo.lock generated
View File

@@ -2678,6 +2678,7 @@ dependencies = [
"tracing-appender",
"tracing-subscriber",
"uds_windows",
"uuid",
"which",
"win32-display-data",
"windows 0.60.0",
@@ -5546,6 +5547,15 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "uuid"
version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0f540e3240398cce6128b64ba83fdbdd86129c16a3aa1a3a252efd66eb3d587"
dependencies = [
"getrandom 0.3.1",
]
[[package]]
name = "v_frame"
version = "0.3.8"