aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/inittmpfs_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-31 23:11:25 +0900
committerOphestra <cat@gensokyo.uk>2025-08-31 23:11:25 +0900
commit49600a6f46d99ff35d883381670548de1f01846e (patch)
tree9c4a8067f2155eca36a29c6bb99f82ecb81c2495 /container/inittmpfs_test.go
parentb489a3bba15bc6d808d7cc9c17f74dd833d32b9e (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/inittmpfs_test.go')
-rw-r--r--container/inittmpfs_test.go6
1 files changed, 4 insertions, 2 deletions
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