From 90cb01b2748550228d0bc179691a19ebb996fc36 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Feb 2025 19:00:43 +0900 Subject: system: move out of internal Signed-off-by: Ophestra --- internal/system/xhost_test.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 internal/system/xhost_test.go (limited to 'internal/system/xhost_test.go') diff --git a/internal/system/xhost_test.go b/internal/system/xhost_test.go deleted file mode 100644 index 4b364432..00000000 --- a/internal/system/xhost_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package system - -import ( - "testing" -) - -func TestChangeHosts(t *testing.T) { - testCases := []string{"chronos", "keyring", "cat", "kbd", "yonah"} - for _, tc := range testCases { - t.Run("append ChangeHosts operation for "+tc, func(t *testing.T) { - sys := New(150) - sys.ChangeHosts(tc) - (&tcOp{EX11, tc}).test(t, sys.ops, []Op{ - XHost(tc), - }, "ChangeHosts") - }) - } -} - -func TestXHost_String(t *testing.T) { - testCases := []struct { - username string - want string - }{ - {"chronos", "SI:localuser:chronos"}, - } - for _, tc := range testCases { - t.Run(tc.want, func(t *testing.T) { - if got := XHost(tc.username).String(); got != tc.want { - t.Errorf("String() = %v, want %v", got, tc.want) - } - }) - } -} -- cgit v1.3.1