aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/pipewire_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-25 08:09:10 +0900
committerOphestra <cat@gensokyo.uk>2025-11-25 08:09:10 +0900
commite77652bf89bf1f1e55174cd61a745cf13ca31e48 (patch)
treeb538f1f1422a7384f5a89a6fbecb9e3bcd8c6ce3 /internal/pipewire/pipewire_test.go
parent88d3e464136db5192e311e4be077aa3db218e5f2 (diff)
internal/pipewire: move test data to files
These get very big later on, and would be painful to represent as the compound literal. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/pipewire_test.go')
-rw-r--r--internal/pipewire/pipewire_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/pipewire/pipewire_test.go b/internal/pipewire/pipewire_test.go
new file mode 100644
index 00000000..49f128fc
--- /dev/null
+++ b/internal/pipewire/pipewire_test.go
@@ -0,0 +1,17 @@
+package pipewire_test
+
+import (
+ _ "embed"
+)
+
+var (
+ //go:embed testdata/00-sendmsg00-message00-header
+ sendmsg00Message00Header string
+ //go:embed testdata/01-sendmsg00-message00-POD
+ sendmsg00Message00POD string
+
+ //go:embed testdata/02-sendmsg00-message01-header
+ sendmsg00Message01Header string
+ //go:embed testdata/03-sendmsg00-message01-POD
+ sendmsg00Message01POD string
+)