Lines Matching refs:got
99 got := mock.followSymlinks(test.from)
100 if got != test.to {
101 t.Errorf("want: %v, got %v", test.to, got)
193 got, err := fs.IsDir(filepath.Join(dir, test.name))
195 if got != test.isDir {
196 t.Errorf("want: %v, got %v", test.isDir, got)
235 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks)
241 if !reflect.DeepEqual(got, want) {
242 t.Errorf("want: %v, got %v", want, got)
281 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks)
287 if !reflect.DeepEqual(got, want) {
288 t.Errorf("want: %v, got %v", want, got)
344 got, err := fs.Readlink(test.from)
346 if got != test.to {
347 t.Errorf("fs.Readlink(%q) want: %q, got %q", test.from, test.to, got)
405 got, err := fs.Lstat(filepath.Join(dir, test.name))
410 if got.Mode()&os.ModeType != test.mode {
412 test.name, test.mode, got.Mode()&os.ModeType)
414 if test.mode == 0 && got.Size() != test.size {
415 t.Errorf("fs.Lstat(%q).Size() want: %d, got %d", test.name, test.size, got.Size())
473 got, err := fs.Stat(filepath.Join(dir, test.name))
478 if got.Mode()&os.ModeType != test.mode {
480 test.name, test.mode, got.Mode()&os.ModeType)
482 if test.mode == 0 && got.Size() != test.size {
483 t.Errorf("fs.Stat(%q).Size() want: %d, got %d", test.name, test.size, got.Size())
531 got, err := fs.glob(test.pattern)
535 if !reflect.DeepEqual(got, test.files) {
536 t.Errorf("want: %v, got %v", test.files, got)
553 func checkErr(t *testing.T, want, got error) {
555 if (got != nil) != (want != nil) {
556 t.Fatalf("want: %v, got %v", want, got)
559 if os.IsNotExist(got) == os.IsNotExist(want) {
563 if syscallError(got) == syscallError(want) {
567 t.Fatalf("want: %v, got %v", want, got)