Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDirentRepeat (0.12 sec)

  1. src/syscall/dirent_test.go

    		}
    		if expected := strings.Repeat(name[:1], filenameMinSize+ord); name != expected {
    			t.Errorf("names[%d] is %q (len %d); expected %q (len %d)", i, name, len(name), expected, len(expected))
    		}
    	}
    }
    
    func TestDirentRepeat(t *testing.T) {
    	const N = 100
    	// Note: the size of the buffer is small enough that the loop
    	// below will need to execute multiple times. See issue #31368.
    	size := N * unsafe.Offsetof(syscall.Dirent{}.Name) / 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top