aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/fs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox/fs_test.go')
-rw-r--r--test/sandbox/fs_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sandbox/fs_test.go b/test/sandbox/fs_test.go
index 1262ddac..5ac31dff 100644
--- a/test/sandbox/fs_test.go
+++ b/test/sandbox/fs_test.go
@@ -75,4 +75,10 @@ func TestCompare(t *testing.T) {
}
})
}
+
+ t.Run("assert", func(t *testing.T) {
+ oldFatal := sandbox.SwapFatal(t.Fatalf)
+ t.Cleanup(func() { sandbox.SwapFatal(oldFatal) })
+ sandbox.MustAssertFS(make(fstest.MapFS), sandbox.MustWantFile(t, &sandbox.FS{Mode: 0xDEADBEEF}))
+ })
}