From 0bd9b9e8fe61a96d7c63ec85c190cd32636fa659 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 2 Mar 2025 23:23:04 +0900 Subject: test/sandbox: assert filesystem json Signed-off-by: Ophestra --- test/sandbox/fs_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/sandbox/fs_test.go') 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})) + }) } -- cgit v1.3.1