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/inittmpfs_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'container/inittmpfs_test.go') diff --git a/container/inittmpfs_test.go b/container/inittmpfs_test.go index 97a591f2..cbe76056 100644 --- a/container/inittmpfs_test.go +++ b/container/inittmpfs_test.go @@ -4,6 +4,8 @@ import ( "os" "syscall" "testing" + + "hakurei.app/container/stub" ) func TestMountTmpfsOp(t *testing.T) { @@ -25,8 +27,8 @@ func TestMountTmpfsOp(t *testing.T) { Path: MustAbs("/run/user/1000/"), Size: 1 << 10, Perm: 0700, - }, nil, nil, []kexpect{ - {"mountTmpfs", expectArgs{ + }, nil, nil, []stub.Call{ + {"mountTmpfs", stub.ExpectArgs{ "ephemeral", // fsname "/sysroot/run/user/1000", // target uintptr(0), // flags -- cgit v1.3.1