Separates fs.File from os.File implementations of platform.File (#1455)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-05-15 13:42:20 +08:00
committed by GitHub
parent ab116e9c21
commit 2ad2921eed
42 changed files with 1248 additions and 1092 deletions

View File

@@ -758,7 +758,7 @@ func TestDirFS_Truncate(t *testing.T) {
name := "truncate"
realPath := path.Join(tmpDir, name)
require.NoError(t, os.WriteFile(realPath, content, 0o0600))
require.NoError(t, os.WriteFile(realPath, content, 0o0666))
errno := testFS.Truncate(name, tc.size)
require.EqualErrno(t, 0, errno)