1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:04:47 -07:00
go/src/path/filepath
Alex Brainman 72193c9824 path/filepath: test EvalSymlinks returns canonical path on windows
When you create C:\A.TXT file on windows, you can open it as c:\a.txt.
EvalSymlinks("c:\a.txt") returns C:\A.TXT. This is all EvalSymlinks
did in the past, but recently symlinks functionality been implemented on
some Windows version (where symlinks are supported). So now EvalSymlinks
handles both: searching for file canonical name and resolving symlinks.

Unfortunately TestEvalSymlinks has not been adjusted properly. The test
tests either canonical paths or symlinks, but not both. This CL separates
canonical paths tests into new TestEvalSymlinksCanonicalNames, so all
functionality is covered. Tests are simplified somewhat too.

Also remove EvalSymlinksAbsWindowsTests - it seems not used anywhere.

Change-Id: Id12e9f1441c1e30f15c523b250469978e4511a84
Reviewed-on: https://go-review.googlesource.com/14412
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-10-22 04:35:50 +00:00
..
example_unix_test.go
export_test.go
match_test.go path/filepath: disable symlink tests on android. 2015-10-20 22:18:43 +00:00
match.go
path_plan9.go
path_test.go path/filepath: test EvalSymlinks returns canonical path on windows 2015-10-22 04:35:50 +00:00
path_unix.go
path_windows_test.go path/filepath: test EvalSymlinks returns canonical path on windows 2015-10-22 04:35:50 +00:00
path_windows.go
path.go path/filepath: document and test behavior of SkipDir on files 2015-06-29 21:16:35 +00:00
symlink_unix.go
symlink_windows.go
symlink.go