Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReaddirnamesOneAtATime (0.27 sec)

  1. src/os/os_test.go

    		}
    		names[count] = d[0]
    		count++
    	}
    	return names[0:count]
    }
    
    // Check that reading a directory one entry at a time gives the same result
    // as reading it all at once.
    func TestReaddirnamesOneAtATime(t *testing.T) {
    	t.Parallel()
    
    	// big directory that doesn't change often.
    	dir := "/usr/bin"
    	switch runtime.GOOS {
    	case "android":
    		dir = "/system/bin"
    	case "ios", "wasip1":
    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