]> Cypherpunks repositories - gostls13.git/commit
os: add more File.WriteAt tests
authorqmuntal <quimmuntal@gmail.com>
Mon, 10 Mar 2025 09:36:08 +0000 (10:36 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 11 Mar 2025 21:29:30 +0000 (14:29 -0700)
commit8867af920748f8aa4e9beb5bb8b88c34c85766f2
tree20fd1a2a66afcb053161aaf73810044cab249c16
parentb0e2f185c574ebd2ee9e0193e6cb37ab1525786a
os: add more File.WriteAt tests

The File.WriteAt doesn't verify that the file offset is not changed
when calling WriteAt, although it is what users expect.

Add some new tests to verify that this behavior doesn't regress.

Change-Id: Ib1e048c7333d6efec71bd8f75a4fa745775306f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/656355
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/os_test.go