Lines Matching refs:fs
106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) {
111 run := func(t *testing.T, fs FileSystem) {
113 f(t, fs, "")
116 f(t, fs, absTestDataDir)
189 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
192 got, err := fs.IsDir(filepath.Join(dir, test.name))
231 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks)
277 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks)
340 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
343 got, err := fs.Readlink(test.from)
401 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
404 got, err := fs.Lstat(filepath.Join(dir, test.name))
469 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
472 got, err := fs.Stat(filepath.Join(dir, test.name))
527 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
530 got, err := fs.glob(test.pattern)