Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestCountByteNoMatch (0.19 seconds)

  1. src/bytes/bytes_test.go

    			}
    			testCountWindow(i, window)
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    }
    
    // Make sure we don't count bytes outside our window
    func TestCountByteNoMatch(t *testing.T) {
    	b := make([]byte, 5015)
    	windows := []int{1, 2, 3, 4, 15, 16, 17, 31, 32, 33, 63, 64, 65, 128}
    	for i := 0; i <= len(b); i++ {
    		for _, window := range windows {
    			if window > len(b[i:]) {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
Back to Top