Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestWalkDir (0.1 sec)

  1. src/path/filepath/path_test.go

    		return filepath.Walk(root, func(path string, info fs.FileInfo, err error) error {
    			return fn(path, fs.FileInfoToDirEntry(info), err)
    		})
    	}
    	testWalk(t, walk, 1)
    }
    
    func TestWalkDir(t *testing.T) {
    	testWalk(t, filepath.WalkDir, 2)
    }
    
    func testWalk(t *testing.T, walk func(string, fs.WalkDirFunc) error, errVisit int) {
    	if runtime.GOOS == "ios" {
    		restore := chtmpdir(t)
    		defer restore()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top