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/tmpfiles_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/tmpfiles_test.go')
| -rw-r--r-- | system/tmpfiles_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/tmpfiles_test.go b/system/tmpfiles_test.go index 1ed07c62..6410a9a5 100644 --- a/system/tmpfiles_test.go +++ b/system/tmpfiles_test.go @@ -18,7 +18,7 @@ func TestCopyFile(t *testing.T) { sys := New(t.Context(), 150) sys.CopyFile(new([]byte), tc.path, tc.cap, tc.n) tc.test(t, sys.ops, []Op{ - &TmpfileOp{nil, tc.path, tc.n, nil}, + &tmpfileOp{nil, tc.path, tc.n, nil}, }, "CopyFile") }) } @@ -36,7 +36,7 @@ func TestLink(t *testing.T) { sys := New(t.Context(), 150) sys.Link(tc.src, tc.dst) (&tcOp{Process, tc.src}).test(t, sys.ops, []Op{ - &HardlinkOp{Process, tc.dst, tc.src}, + &hardlinkOp{Process, tc.dst, tc.src}, }, "Link") }) } @@ -55,7 +55,7 @@ func TestLinkFileType(t *testing.T) { sys := New(t.Context(), 150) sys.LinkFileType(tc.et, tc.path, tc.dst) tc.test(t, sys.ops, []Op{ - &HardlinkOp{tc.et, tc.dst, tc.path}, + &hardlinkOp{tc.et, tc.dst, tc.path}, }, "LinkFileType") }) } @@ -73,7 +73,7 @@ func TestTmpfile_String(t *testing.T) { for _, tc := range testCases { t.Run(tc.want, func(t *testing.T) { - if got := (&TmpfileOp{src: tc.src, n: tc.n}).String(); got != tc.want { + if got := (&tmpfileOp{src: tc.src, n: tc.n}).String(); got != tc.want { t.Errorf("String() = %v, want %v", got, tc.want) } }) |
