| 1 | //go:build windows |
| 2 | |
| 3 | package test |
| 4 | |
| 5 | import ( |
| 6 | "io/fs" |
| 7 | |
| 8 | "github.com/go-git/go-billy/v6" |
| 9 | "github.com/go-git/go-billy/v6/memfs" |
| 10 | "github.com/go-git/go-billy/v6/osfs" |
| 11 | ) |
| 12 | |
| 13 | var ( |
| 14 | customMode fs.FileMode = 0o666 |
| 15 | expectedSymlinkTarget = "\\dir\\file" |
| 16 | ) |
| 17 | |
| 18 | func allFS(tempDir func() string) []billy.Filesystem { |
| 19 | return []billy.Filesystem{ |
| 20 | osfs.New(tempDir(), osfs.WithBoundOS()), |
| 21 | memfs.New(), |
| 22 | } |
| 23 | } |