Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStatDirWithTrailingSlash (0.14 sec)

  1. src/os/os_test.go

    	}
    	s = writeFile(t, f, O_CREATE|O_TRUNC|O_RDWR, "new")
    	if s != "new" {
    		t.Fatalf("writeFile: after truncate have %q want %q", s, "new")
    	}
    }
    
    func TestStatDirWithTrailingSlash(t *testing.T) {
    	t.Parallel()
    
    	// Create new temporary directory and arrange to clean it up.
    	path := t.TempDir()
    
    	// Stat of path should succeed.
    	if _, err := Stat(path); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top