Lines Matching refs:os
108 wd, _ := os.Getwd()
125 os.Chdir(absTestDataDir)
126 defer os.Chdir(wd)
135 os.Chdir("/")
136 defer os.Chdir(wd)
170 {"dangling", false, os.ErrNotExist},
172 {"a/missing", false, os.ErrNotExist},
173 {"b/missing", false, os.ErrNotExist},
174 {"c/missing", false, os.ErrNotExist},
175 {"d/missing", false, os.ErrNotExist},
177 {"dangling/missing", false, os.ErrNotExist},
179 {"a/missing/missing", false, os.ErrNotExist},
180 {"b/missing/missing", false, os.ErrNotExist},
181 {"c/missing/missing", false, os.ErrNotExist},
182 {"d/missing/missing", false, os.ErrNotExist},
184 {"dangling/missing/missing", false, os.ErrNotExist},
226 {"dangling", nil, os.ErrNotExist},
228 {"missing", nil, os.ErrNotExist},
272 {"dangling", nil, os.ErrNotExist},
274 {"missing", nil, os.ErrNotExist},
325 {"a/missing", "", os.ErrNotExist},
326 {"b/missing", "", os.ErrNotExist},
327 {"c/missing", "", os.ErrNotExist},
328 {"d/missing", "", os.ErrNotExist},
329 {"e/missing", "", os.ErrNotExist},
330 {"dangling/missing", "", os.ErrNotExist},
332 {"a/missing/missing", "", os.ErrNotExist},
333 {"b/missing/missing", "", os.ErrNotExist},
334 {"c/missing/missing", "", os.ErrNotExist},
335 {"d/missing/missing", "", os.ErrNotExist},
336 {"e/missing/missing", "", os.ErrNotExist},
337 {"dangling/missing/missing", "", os.ErrNotExist},
356 mode os.FileMode
360 {".", os.ModeDir, 0, nil},
361 {"/", os.ModeDir, 0, nil},
363 {"a", os.ModeDir, 0, nil},
364 {"a/a", os.ModeDir, 0, nil},
366 {"a/a/f", os.ModeSymlink, 7, nil},
368 {"b", os.ModeSymlink, 1, nil},
369 {"b/a", os.ModeDir, 0, nil},
371 {"b/a/f", os.ModeSymlink, 7, nil},
373 {"c", os.ModeSymlink, 3, nil},
375 {"c/f", os.ModeSymlink, 7, nil},
378 {"d/f", os.ModeSymlink, 7, nil},
380 {"e", os.ModeSymlink, 5, nil},
384 {"dangling", os.ModeSymlink, 7, nil},
386 {"a/missing", 0, 0, os.ErrNotExist},
387 {"b/missing", 0, 0, os.ErrNotExist},
388 {"c/missing", 0, 0, os.ErrNotExist},
389 {"d/missing", 0, 0, os.ErrNotExist},
390 {"e/missing", 0, 0, os.ErrNotExist},
391 {"dangling/missing", 0, 0, os.ErrNotExist},
393 {"a/missing/missing", 0, 0, os.ErrNotExist},
394 {"b/missing/missing", 0, 0, os.ErrNotExist},
395 {"c/missing/missing", 0, 0, os.ErrNotExist},
396 {"d/missing/missing", 0, 0, os.ErrNotExist},
397 {"e/missing/missing", 0, 0, os.ErrNotExist},
398 {"dangling/missing/missing", 0, 0, os.ErrNotExist},
409 if got.Mode()&os.ModeType != test.mode {
411 test.name, test.mode, got.Mode()&os.ModeType)
424 mode os.FileMode
428 {".", os.ModeDir, 0, nil},
429 {"/", os.ModeDir, 0, nil},
431 {"a", os.ModeDir, 0, nil},
432 {"a/a", os.ModeDir, 0, nil},
436 {"b", os.ModeDir, 0, nil},
437 {"b/a", os.ModeDir, 0, nil},
441 {"c", os.ModeDir, 0, nil},
452 {"dangling", 0, 0, os.ErrNotExist},
454 {"a/missing", 0, 0, os.ErrNotExist},
455 {"b/missing", 0, 0, os.ErrNotExist},
456 {"c/missing", 0, 0, os.ErrNotExist},
457 {"d/missing", 0, 0, os.ErrNotExist},
458 {"e/missing", 0, 0, os.ErrNotExist},
459 {"dangling/missing", 0, 0, os.ErrNotExist},
461 {"a/missing/missing", 0, 0, os.ErrNotExist},
462 {"b/missing/missing", 0, 0, os.ErrNotExist},
463 {"c/missing/missing", 0, 0, os.ErrNotExist},
464 {"d/missing/missing", 0, 0, os.ErrNotExist},
465 {"e/missing/missing", 0, 0, os.ErrNotExist},
466 {"dangling/missing/missing", 0, 0, os.ErrNotExist},
477 if got.Mode()&os.ModeType != test.mode {
479 test.name, test.mode, got.Mode()&os.ModeType)
543 if serr, ok := err.(*os.SyscallError); ok {
558 if os.IsNotExist(got) == os.IsNotExist(want) {