aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dispatcher_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/dispatcher_test.go')
-rw-r--r--system/dispatcher_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/dispatcher_test.go b/system/dispatcher_test.go
index c459de4b..34973879 100644
--- a/system/dispatcher_test.go
+++ b/system/dispatcher_test.go
@@ -192,6 +192,20 @@ type kstub struct{ *stub.Stub[syscallDispatcher] }
func (k *kstub) new(f func(k syscallDispatcher)) { k.Helper(); k.New(f) }
+func (k *kstub) mkdir(name string, perm os.FileMode) error {
+ k.Helper()
+ return k.Expects("mkdir").Error(
+ stub.CheckArg(k.Stub, "name", name, 0),
+ stub.CheckArg(k.Stub, "perm", perm, 1))
+}
+
+func (k *kstub) chmod(name string, mode os.FileMode) error {
+ k.Helper()
+ return k.Expects("chmod").Error(
+ stub.CheckArg(k.Stub, "name", name, 0),
+ stub.CheckArg(k.Stub, "mode", mode, 1))
+}
+
func (k *kstub) link(oldname, newname string) error {
k.Helper()
return k.Expects("link").Error(