Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/os-readdir_test.go

    	// Add entries slice for this test directory.
    	testResults = append(testResults, result{dir, entries})
    	return testResults
    }
    
    // Test to read non-empty directory with directories and files.
    func setupTestReadDirGeneric(t *testing.T) (testResults []result) {
    	dir := t.TempDir()
    	if err := os.MkdirAll(filepath.Join(dir, "mydir"), 0o777); err != nil {
    		t.Fatalf("Unable to create prefix directory \"mydir\", %s", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top