diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-25 08:09:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-25 08:09:10 +0900 |
| commit | e77652bf89bf1f1e55174cd61a745cf13ca31e48 (patch) | |
| tree | b538f1f1422a7384f5a89a6fbecb9e3bcd8c6ce3 /internal/pipewire/core_test.go | |
| parent | 88d3e464136db5192e311e4be077aa3db218e5f2 (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/core_test.go')
| -rw-r--r-- | internal/pipewire/core_test.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/internal/pipewire/core_test.go b/internal/pipewire/core_test.go index c271feaf..d8c7cf90 100644 --- a/internal/pipewire/core_test.go +++ b/internal/pipewire/core_test.go @@ -8,14 +8,7 @@ import ( func TestCoreHello(t *testing.T) { encodingTestCases[pipewire.CoreHello, *pipewire.CoreHello]{ - {"sample", []byte{ - 0x10, 0, 0, 0, - 0xe, 0, 0, 0, - 4, 0, 0, 0, - 4, 0, 0, 0, - 4, 0, 0, 0, - 0, 0, 0, 0, - }, pipewire.CoreHello{ + {"sample", []byte(sendmsg00Message00POD), pipewire.CoreHello{ Version: pipewire.PW_VERSION_CORE, }, nil}, }.run(t) |
