diff options
Diffstat (limited to 'vendor/github.com/otiai10/copy/test_setup_x.go')
| -rw-r--r-- | vendor/github.com/otiai10/copy/test_setup_x.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/otiai10/copy/test_setup_x.go b/vendor/github.com/otiai10/copy/test_setup_x.go new file mode 100644 index 0000000..4c35b14 --- /dev/null +++ b/vendor/github.com/otiai10/copy/test_setup_x.go @@ -0,0 +1,17 @@ +//go:build windows || plan9 || netbsd || aix || illumos || solaris || js +// +build windows plan9 netbsd aix illumos solaris js + +package copy + +import ( + "os" + "testing" +) + +func setup(m *testing.M) { + os.RemoveAll("test/data.copy") + os.MkdirAll("test/data.copy", os.ModePerm) + os.Symlink("test/data/case01", "test/data/case03/case01") + os.Chmod("test/data/case07/dir_0555", 0555) + os.Chmod("test/data/case07/file_0444", 0444) +} |
