Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReadDirN (0.16 sec)

  1. cmd/os-readdir_test.go

    			// Keep entries sorted for easier comparison.
    			sort.Strings(entries)
    			if !checkResult(r.entries, entries) {
    				t.Fatalf("expected = %s, got: %s", r.entries, entries)
    			}
    		}
    	}
    }
    
    func TestReadDirN(t *testing.T) {
    	testCases := []struct {
    		numFiles    int
    		n           int
    		expectedNum int
    	}{
    		{0, 0, 0},
    		{0, 1, 0},
    		{1, 0, 0},
    		{0, -1, 0},
    		{1, -1, 1},
    		{10, -1, 10},
    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