Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testStatAndLstat (0.26 sec)

  1. src/os/stat_test.go

    )
    
    type testStatAndLstatParams struct {
    	isLink     bool
    	statCheck  func(*testing.T, string, fs.FileInfo)
    	lstatCheck func(*testing.T, string, fs.FileInfo)
    }
    
    // testStatAndLstat verifies that all os.Stat, os.Lstat os.File.Stat and os.Readdir work.
    func testStatAndLstat(t *testing.T, path string, params testStatAndLstatParams) {
    	// test os.Stat
    	sfi, err := os.Stat(path)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top