diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-04 02:27:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-04 02:29:27 +0900 |
| commit | 69b1131d6622108f37c85014035f71cf4f2986e5 (patch) | |
| tree | 368cc8d0659d9925c9df8153398ca5038313e160 /internal/pipewire/core_test.go | |
| parent | 2c0b92771a95693af7f14a70ddeddc5371e73996 (diff) | |
internal/pipewire: use type name in error strings
This provides more useful messages for protocol errors.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/core_test.go')
| -rw-r--r-- | internal/pipewire/core_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/pipewire/core_test.go b/internal/pipewire/core_test.go index 9d19be4a..0c52c7ee 100644 --- a/internal/pipewire/core_test.go +++ b/internal/pipewire/core_test.go @@ -128,15 +128,15 @@ func TestCorePing(t *testing.T) { // handmade sample {"sample", []byte{ /* size: rest of data */ 0x20, 0, 0, 0, - /* type: Struct */ pipewire.SPA_TYPE_Struct, 0, 0, 0, + /* type: Struct */ byte(pipewire.SPA_TYPE_Struct), 0, 0, 0, /* size: 4 bytes */ 4, 0, 0, 0, - /* type: Int */ pipewire.SPA_TYPE_Int, 0, 0, 0, + /* type: Int */ byte(pipewire.SPA_TYPE_Int), 0, 0, 0, /* value: -1 */ 0xff, 0xff, 0xff, 0xff, /* padding */ 0, 0, 0, 0, /* size: 4 bytes */ 4, 0, 0, 0, - /* type: Int */ pipewire.SPA_TYPE_Int, 0, 0, 0, + /* type: Int */ byte(pipewire.SPA_TYPE_Int), 0, 0, 0, /* value: 0 */ 0, 0, 0, 0, /* padding */ 0, 0, 0, 0, }, pipewire.CorePing{ @@ -257,15 +257,15 @@ func TestCorePong(t *testing.T) { // handmade sample {"sample", []byte{ /* size: rest of data */ 0x20, 0, 0, 0, - /* type: Struct */ pipewire.SPA_TYPE_Struct, 0, 0, 0, + /* type: Struct */ byte(pipewire.SPA_TYPE_Struct), 0, 0, 0, /* size: 4 bytes */ 4, 0, 0, 0, - /* type: Int */ pipewire.SPA_TYPE_Int, 0, 0, 0, + /* type: Int */ byte(pipewire.SPA_TYPE_Int), 0, 0, 0, /* value: -1 */ 0xff, 0xff, 0xff, 0xff, /* padding */ 0, 0, 0, 0, /* size: 4 bytes */ 4, 0, 0, 0, - /* type: Int */ pipewire.SPA_TYPE_Int, 0, 0, 0, + /* type: Int */ byte(pipewire.SPA_TYPE_Int), 0, 0, 0, /* value: 0 */ 0, 0, 0, 0, /* padding */ 0, 0, 0, 0, }, pipewire.CorePong{ |
