Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fallthrough (0.09 sec)

  1. cmd/test-utils_test.go

    	// Get canonical headers.
    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    		switch {
    		case k == "host":
    			buf.WriteString(req.URL.Host)
    			fallthrough
    		default:
    			for idx, v := range headerMap[k] {
    				if idx > 0 {
    					buf.WriteByte(',')
    				}
    				buf.WriteString(v)
    			}
    			buf.WriteByte('\n')
    		}
    	}
    	canonicalHeaders := buf.String()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    	for i := range x {
    		switch rand.Intn(10) {
    		case 0:
    			x[i] = ' '
    		case 1:
    			if i > 0 && x[i-1] == 'x' {
    				copy(x[i-1:], "χ")
    				break
    			}
    			fallthrough
    		default:
    			x[i] = 'x'
    		}
    	}
    	return x
    }
    
    var makeFieldsInputASCII = func() []byte {
    	x := make([]byte, 1<<20)
    	// Input is ~10% space, rest ASCII non-space.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top