diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-08 04:57:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-08 04:57:22 +0900 |
| commit | 9b507715d42f74c3f18fe817c2464abfca1b0182 (patch) | |
| tree | c3d8ee5ef6809aaf3174bd6ecb00b8115261897e /system/dbus/config_test.go | |
| parent | 12ab7ea3b465a130933efd9e7fe044f3636dc6ed (diff) | |
hst/dbus: validate interface strings
This is relocated to hst to validate early.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus/config_test.go')
| -rw-r--r-- | system/dbus/config_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/system/dbus/config_test.go b/system/dbus/config_test.go index 9a0e570e..84477e40 100644 --- a/system/dbus/config_test.go +++ b/system/dbus/config_test.go @@ -10,7 +10,7 @@ import ( "hakurei.app/system/dbus" ) -func TestConfig_Args(t *testing.T) { +func TestConfigArgs(t *testing.T) { for _, tc := range testCasesExt { if tc.wantErr { // args does not check for nulls @@ -19,9 +19,7 @@ func TestConfig_Args(t *testing.T) { t.Run("build arguments for "+tc.id, func(t *testing.T) { if got := dbus.Args(tc.c, tc.bus); !slices.Equal(got, tc.want) { - t.Errorf("Args(%q) = %v, want %v", - tc.bus, - got, tc.want) + t.Errorf("Args: %v, want %v", got, tc.want) } }) } |
