]> Cypherpunks repositories - gostls13.git/commit
os: add test to ensure Rename returns *LinkError
authorDave Cheney <dave@cheney.net>
Fri, 17 Jul 2015 17:46:38 +0000 (10:46 -0700)
committerDave Cheney <dave@cheney.net>
Fri, 17 Jul 2015 22:46:05 +0000 (22:46 +0000)
commit955c0fd2f9080b808be789f68be5fa37a0bb4778
tree9bc259b7e6e08ce04f95d2eddc207b43db7ac536
parented9a4c91c2e82aabe8ef4a6391d9d3306eff63bc
os: add test to ensure Rename returns *LinkError

Updates #10061

CL 12353 updated the documentation for os.Rename to stipulate the function will
return errors of type *os.LinkError. This CL adds a test to ensure that the
implementations continue to obey this contract.

Change-Id: I41beb8c9d8356c737de251fdc6f652caab3ee636
Reviewed-on: https://go-review.googlesource.com/12329
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/os_test.go