Lines Matching refs:got

98 			got := mock.followSymlinks(test.from)
99 if got != test.to {
100 t.Errorf("want: %v, got %v", test.to, got)
192 got, err := fs.IsDir(filepath.Join(dir, test.name))
194 if got != test.isDir {
195 t.Errorf("want: %v, got %v", test.isDir, got)
234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks)
240 if !reflect.DeepEqual(got, want) {
241 t.Errorf("want: %v, got %v", want, got)
280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks)
286 if !reflect.DeepEqual(got, want) {
287 t.Errorf("want: %v, got %v", want, got)
343 got, err := fs.Readlink(test.from)
345 if got != test.to {
346 t.Errorf("fs.Readlink(%q) want: %q, got %q", test.from, test.to, got)
404 got, err := fs.Lstat(filepath.Join(dir, test.name))
409 if got.Mode()&os.ModeType != test.mode {
411 test.name, test.mode, got.Mode()&os.ModeType)
413 if test.mode == 0 && got.Size() != test.size {
414 t.Errorf("fs.Lstat(%q).Size() want: %d, got %d", test.name, test.size, got.Size())
472 got, err := fs.Stat(filepath.Join(dir, test.name))
477 if got.Mode()&os.ModeType != test.mode {
479 test.name, test.mode, got.Mode()&os.ModeType)
481 if test.mode == 0 && got.Size() != test.size {
482 t.Errorf("fs.Stat(%q).Size() want: %d, got %d", test.name, test.size, got.Size())
530 got, err := fs.glob(test.pattern)
534 if !reflect.DeepEqual(got, test.files) {
535 t.Errorf("want: %v, got %v", test.files, got)
552 func checkErr(t *testing.T, want, got error) {
554 if (got != nil) != (want != nil) {
555 t.Fatalf("want: %v, got %v", want, got)
558 if os.IsNotExist(got) == os.IsNotExist(want) {
562 if syscallError(got) == syscallError(want) {
566 t.Fatalf("want: %v, got %v", want, got)