Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 140 for index (0.19 sec)

  1. src/net/http/request.go

    	if len(req.Header["Host"]) > 1 {
    		return nil, fmt.Errorf("too many Host headers")
    	}
    
    	// RFC 7230, section 5.3: Must treat
    	//	GET /index.html HTTP/1.1
    	//	Host: www.google.com
    	// and
    	//	GET http://www.google.com/index.html HTTP/1.1
    	//	Host: doesntmatter
    	// the same. In the second case, any Host line is ignored.
    	req.Host = req.URL.Host
    	if req.Host == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. pkg/apis/certificates/validation/validation_test.go

    				},
    			},
    			errs: field.ErrorList{
    				field.NotSupported(specPath.Child("usages").Index(0), capi.KeyUsage("unknown"), allValidUsages.List()),
    				field.NotSupported(specPath.Child("usages").Index(1), capi.KeyUsage("unknown"), allValidUsages.List()),
    				field.Duplicate(specPath.Child("usages").Index(1), capi.KeyUsage("unknown")),
    			},
    		},
    	}
    	for name, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  3. src/cmd/internal/testdir/testdir_test.go

    	force          = flag.Bool("f", false, "ignore expected-failure test lists")
    	target         = flag.String("target", "", "cross-compile tests for `goos/goarch`")
    
    	shard  = flag.Int("shard", 0, "shard index to run. Only applicable if -shards is non-zero.")
    	shards = flag.Int("shards", 0, "number of shards. If 0, all tests are run. This is used by the continuous build.")
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. src/go/build/build.go

    			data = data[1:]
    			continue
    		case '/':
    			if bytes.HasPrefix(data, slashSlash) {
    				i := bytes.Index(data, newline)
    				if i < 0 {
    					return nil
    				}
    				data = data[i+1:]
    				continue
    			}
    			if bytes.HasPrefix(data, slashStar) {
    				data = data[2:]
    				i := bytes.Index(data, starSlash)
    				if i < 0 {
    					return nil
    				}
    				data = data[i+2:]
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    		[]uintptr{uintptr(unsafe.Pointer(&source[0])),
    			uintptr(unsafe.Pointer(&abspath[0]))})
    	if ret != 0 {
    		index := bytes.IndexByte(abspath[:], byte(0))
    		if index != -1 {
    			return index, 0
    		}
    	} else {
    		errptr := (*int)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4, []uintptr{}))) //__errno()
    		return 0, *errptr
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. pilot/pkg/model/virtualservice_test.go

    		Meta: config.Meta{
    			GroupVersionKind: gvk.VirtualService,
    			Name:             "service-wildcard-v1",
    			Namespace:        "default",
    		},
    		Spec: virtualServiceSpec9,
    	}
    
    	index := virtualServiceIndex{
    		publicByGateway: map[string][]config.Config{
    			constants.IstioMeshGateway: {
    				virtualService1,
    				virtualService2,
    				virtualService3,
    				virtualService4,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		listVal.Set(reflect.MakeSlice(listVal.Type(), len(selectedObjects), len(selectedObjects)))
    		span.AddEvent("Resized result")
    		for i, o := range selectedObjects {
    			listVal.Index(i).Set(reflect.ValueOf(o).Elem())
    		}
    	}
    	span.AddEvent("Filtered items", attribute.Int("count", listVal.Len()))
    	if c.versioner != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    				dCfg: fq.DispatchingConfig{
    					ConcurrencyLimit: test.concurrencyLimit,
    				},
    				queues: test.queues,
    			}
    
    			t.Logf("QS: robin index=%d, seats in use=%d limit=%d", qs.robinIndex, qs.totSeatsInUse, qs.dCfg.ConcurrencyLimit)
    
    			for i := 0; i < test.attempts; i++ {
    				attempt := i + 1
    				if test.beforeSelectQueueLocked != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  9. src/testing/testing.go

    	file := frame.File
    	line := frame.Line
    	if file != "" {
    		if *fullPath {
    			// If relative path, truncate file name at last file name separator.
    		} else if index := strings.LastIndexAny(file, `/\`); index >= 0 {
    			file = file[index+1:]
    		}
    	} else {
    		file = "???"
    	}
    	if line == 0 {
    		line = 1
    	}
    	buf := new(strings.Builder)
    	// Every line is indented at least 4 spaces.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  10. src/fmt/fmt_test.go

    	return prefix + strings.Repeat("0", width-len(suffix)) + suffix
    }
    
    func TestSprintf(t *testing.T) {
    	for _, tt := range fmtTests {
    		s := Sprintf(tt.fmt, tt.val)
    		i := strings.Index(tt.out, "PTR")
    		if i >= 0 && i < len(s) {
    			var pattern, chars string
    			switch {
    			case strings.HasPrefix(tt.out[i:], "PTR_b"):
    				pattern = "PTR_b"
    				chars = "01"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top