test/sandbox: assert filesystem json
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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}))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user