aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initplace_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-13 01:06:45 +0900
committerOphestra <cat@gensokyo.uk>2025-10-13 01:06:45 +0900
commitbff2a1e748f04c4e7af9b28a03f608f87fcf1a33 (patch)
tree6feaf25a9d326f69bf4369b8a04161a08d9d9c90 /container/initplace_test.go
parent8a91234cb4d8cbf6e1d5b909bc11f630d78a93e5 (diff)
container/initplace: remove indirect method
This is no longer useful and is highly error-prone. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initplace_test.go')
-rw-r--r--container/initplace_test.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/container/initplace_test.go b/container/initplace_test.go
index a330a804..03f298b6 100644
--- a/container/initplace_test.go
+++ b/container/initplace_test.go
@@ -82,18 +82,8 @@ func TestTmpfileOp(t *testing.T) {
})
checkOpsBuilder(t, []opsBuilderTestCase{
- {"noref", new(Ops).Place(samplePath, sampleData), Ops{
- &TmpfileOp{
- Path: samplePath,
- Data: sampleData,
- },
- }},
-
- {"ref", new(Ops).PlaceP(samplePath, new(*[]byte)), Ops{
- &TmpfileOp{
- Path: samplePath,
- Data: []byte{},
- },
+ {"full", new(Ops).Place(samplePath, sampleData), Ops{
+ &TmpfileOp{Path: samplePath, Data: sampleData},
}},
})