From bff2a1e748f04c4e7af9b28a03f608f87fcf1a33 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 13 Oct 2025 01:06:45 +0900 Subject: container/initplace: remove indirect method This is no longer useful and is highly error-prone. Signed-off-by: Ophestra --- container/initplace_test.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'container/initplace_test.go') 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}, }}, }) -- cgit v1.3.1