Lines Matching full:readdir
269 s, err2 := file.Readdir(-1)
271 t.Fatalf("readdir %q failed: %v", dir, err2)
395 fi, err := d.Readdir(n)
397 t.Fatalf("Readdir of %d got error %v, want %v", n, err, wantErr)
400 t.Errorf("Readdir of %d got %d files, want %d", n, g, e)
475 readDir := func() ([]FileInfo, error) {
481 return d.Readdir(-1)
484 fis, err := readDir()
486 t.Fatalf("%s: Readdir: %v", testName, err)
499 if got, want := names(mustReadDir("inital readdir")),
501 t.Errorf("initial readdir got %q; want %q", got, want)
511 if _, err := readDir(); err != xerr {
516 // Readdir on a regular file should fail.
1642 {"Readdir", func(f *File) error { _, err := f.Readdir(1); return err }},