Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testWalkSymlink (0.2 sec)

  1. src/path/filepath/path_test.go

    	want := []string{".", "link"}
    	if fmt.Sprintf("%q", visited) != fmt.Sprintf("%q", want) {
    		t.Errorf("unexpected paths visited %q, want %q", visited, want)
    	}
    }
    
    func TestWalkSymlink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    	testWalkSymlink(t, os.Symlink)
    }
    
    func TestIssue29372(t *testing.T) {
    	tmpDir := t.TempDir()
    
    	path := filepath.Join(tmpDir, "file.txt")
    	err := os.WriteFile(path, nil, 0644)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. src/path/filepath/path_windows_test.go

    	output, _ := exec.Command("cmd", "/c", "mklink", "/?").Output()
    	if !strings.Contains(string(output), fmt.Sprintf(" /%s ", linktype)) {
    		t.Skipf(`skipping test; mklink does not supports /%s parameter`, linktype)
    	}
    	testWalkSymlink(t, func(target, link string) error {
    		output, err := exec.Command("cmd", "/c", "mklink", "/"+linktype, link, target).CombinedOutput()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/fsys/fsys_test.go

    	if err == nil {
    		t.Fatalf("Walk: got no error, want error")
    	}
    	if err.Error() != "returned from function" {
    		t.Fatalf("Walk: got error %v, want \"returned from function\" error", err)
    	}
    }
    
    func TestWalkSymlink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    
    	initOverlay(t, `{
    	"Replace": {"overlay_symlink/file": "symlink/file"}
    }
    -- dir/file --`)
    
    	// Create symlink
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
Back to top