diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-02 23:23:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-02 23:23:04 +0900 |
| commit | 0bd9b9e8fe61a96d7c63ec85c190cd32636fa659 (patch) | |
| tree | 22af611c64ac75a94294b510b206df80ad2e85ed /test/sandbox/fs_test.go | |
| parent | 39e32799b3ae889bfb05cead2708c82137eb795a (diff) | |
test/sandbox: assert filesystem json
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/fs_test.go')
| -rw-r--r-- | test/sandbox/fs_test.go | 6 |
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})) + }) } |
