diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-06 16:16:03 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-06 16:16:03 +0900 |
| commit | e68db7fbfc367f25ccbaf57ec43f0f4b3c93cba7 (patch) | |
| tree | cf6c16503c64bc5ca90d155bd7960809d10f272b /system/xhost_test.go | |
| parent | ac81cfbedc438593f3b504d53728914ac6a3d359 (diff) | |
system: unexport Op implementations
None of these are valid with their zero value, and the implementations assume they are created by the builder methods. They are by all means an implementation detail and exporting them makes no sense.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/xhost_test.go')
| -rw-r--r-- | system/xhost_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/xhost_test.go b/system/xhost_test.go index df0e8166..32cb0636 100644 --- a/system/xhost_test.go +++ b/system/xhost_test.go @@ -11,7 +11,7 @@ func TestChangeHosts(t *testing.T) { sys := New(t.Context(), 150) sys.ChangeHosts(tc) (&tcOp{EX11, tc}).test(t, sys.ops, []Op{ - XHostOp(tc), + xhostOp(tc), }, "ChangeHosts") }) } @@ -26,7 +26,7 @@ func TestXHost_String(t *testing.T) { } for _, tc := range testCases { t.Run(tc.want, func(t *testing.T) { - if got := XHostOp(tc.username).String(); got != tc.want { + if got := xhostOp(tc.username).String(); got != tc.want { t.Errorf("String() = %v, want %v", got, tc.want) } }) |
