Lines Matching refs:tt
1231 for i, tt := range tests {
1232 off, err := f.Seek(tt.in, tt.whence)
1233 if off != tt.out || err != nil {
1234 if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 {
1239 t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out)
1269 for _, tt := range openErrorTests {
1270 f, err := OpenFile(tt.path, tt.mode, 0)
1272 t.Errorf("Open(%q, %d) succeeded", tt.path, tt.mode)
1278 t.Errorf("Open(%q, %d) returns error of %T type; want *PathError", tt.path, tt.mode, err)
1280 if perr.Err != tt.error {
1283 expectedErrStr := strings.Replace(tt.error.Error(), "file ", "", 1)
1288 if tt.error == syscall.EISDIR && strings.HasSuffix(syscallErrStr, syscall.EACCES.Error()) {
1291 t.Errorf("Open(%q, %d) = _, %q; want suffix %q", tt.path, tt.mode, syscallErrStr, expectedErrStr)
1298 if tt.error == syscall.EISDIR && perr.Err == syscall.EACCES {
1302 t.Errorf("Open(%q, %d) = _, %q; want %q", tt.path, tt.mode, perr.Err.Error(), tt.error.Error())
1875 for _, tt := range nilFileMethodTests {
1877 got := tt.f(file)
1879 t.Errorf("%v should fail when f is nil; got %v", tt.name, got)