- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFTruncate (0.21 sec)
-
src/os/os_test.go
} if dir.Size() != size { t.Errorf("Stat %q: size %d want %d", f.Name(), dir.Size(), size) } } func TestFTruncate(t *testing.T) { t.Parallel() f := newFile("TestFTruncate", t) defer Remove(f.Name()) defer f.Close() checkSize(t, f, 0) f.Write([]byte("hello, world\n")) checkSize(t, f, 13) f.Truncate(10)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)