From 49600a6f46d99ff35d883381670548de1f01846e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 31 Aug 2025 23:11:25 +0900 Subject: container/stub: export stub helpers These are very useful in many packages containing relatively large amount of code making calls to difficult or impossible to stub functions. Signed-off-by: Ophestra --- container/initremount_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'container/initremount_test.go') diff --git a/container/initremount_test.go b/container/initremount_test.go index 22c978fc..4fb60e18 100644 --- a/container/initremount_test.go +++ b/container/initremount_test.go @@ -3,6 +3,8 @@ package container import ( "syscall" "testing" + + "hakurei.app/container/stub" ) func TestRemountOp(t *testing.T) { @@ -10,8 +12,8 @@ func TestRemountOp(t *testing.T) { {"success", new(Params), &RemountOp{ Target: MustAbs("/"), Flags: syscall.MS_RDONLY, - }, nil, nil, []kexpect{ - {"remount", expectArgs{"/sysroot", uintptr(1)}, nil, nil}, + }, nil, nil, []stub.Call{ + {"remount", stub.ExpectArgs{"/sysroot", uintptr(1)}, nil, nil}, }, nil}, }) -- cgit v1.3.1