From 9b507715d42f74c3f18fe817c2464abfca1b0182 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 8 Oct 2025 04:57:22 +0900 Subject: hst/dbus: validate interface strings This is relocated to hst to validate early. Signed-off-by: Ophestra --- system/dbus/config_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'system/dbus/config_test.go') 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) } }) } -- cgit v1.3.1