(t *testing.T, file string)
| 2621 | } |
| 2622 | |
| 2623 | func getTempSymlinkPath(t *testing.T, file string) string { |
| 2624 | t.Helper() |
| 2625 | |
| 2626 | tempDir := t.TempDir() |
| 2627 | link := filepath.Join(tempDir, file+"_symlink") |
| 2628 | if err := os.Symlink(file, link); err != nil { |
| 2629 | t.Fatalf("could not create temp symlink %q pointing to %q: %v", link, file, err) |
| 2630 | } |
| 2631 | return link |
| 2632 | } |
| 2633 | |
| 2634 | func TestDirExists(t *testing.T) { |
| 2635 | t.Parallel() |
no test coverage detected