Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for makeArg (0.51 sec)

  1. pilot/pkg/serviceregistry/kube/controller/fake.go

    			assert.NoError(t, queue.WaitForClose(c.queue, time.Second*5))
    		})
    	}
    	c.stop = stop
    	if cleanupStop {
    		t.Cleanup(func() {
    			close(stop)
    		})
    	}
    	for _, crd := range opts.CRDs {
    		clienttest.MakeCRD(t, c.client, crd)
    	}
    	opts.Client.RunAndWait(c.stop)
    	var fx *xdsfake.Updater
    	if x, ok := xdsUpdater.(*xdsfake.Updater); ok {
    		fx = x
    	}
    
    	if !opts.SkipRun {
    		go c.Run(c.stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    	conf := Config{Importer: imports}
    	makePkg := func(src string) {
    		f := mustParse(src)
    		name := f.PkgName.Value
    		pkg, err := conf.Check(name, []*syntax.File{f}, nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		imports[name] = pkg
    	}
    	makePkg(`package lib; type T[P any] struct{}`)
    	makePkg(`package a; import "lib"; var A lib.T[int]`)
    	makePkg(`package b; import "lib"; var B lib.T[int]`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/go/types/api_test.go

    		useMap := make(map[*ast.Ident]Object)
    		makePkg := func(src string) *Package {
    			pkg, err := typecheck(src, &conf, &Info{Instances: instMap, Uses: useMap})
    			// allow error for issue51803
    			if err != nil && (pkg == nil || pkg.Name() != "issue51803") {
    				t.Fatal(err)
    			}
    			imports[pkg.Name()] = pkg
    			return pkg
    		}
    		makePkg(lib)
    		pkg := makePkg(test.src)
    
    		t.Run(pkg.Name(), func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/crdclient/client_test.go

    		if len(l) != 0 {
    			return fmt.Errorf("expected no items returned for unknown CRD")
    		}
    		return nil
    	}, retry.Timeout(time.Second*5), retry.Converge(5))
    
    	clienttest.MakeCRD(t, fake, r.GroupVersionResource())
    
    	retry.UntilSuccessOrFail(t, func() error {
    		l := store.List(r.GroupVersionKind(), "")
    		if len(l) != 1 {
    			return fmt.Errorf("expected items returned")
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 02:58:52 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go

    		configs = append(configs, settings.Configs...)
    	}
    
    	// Convert to menu entries.
    	result := make([]configMenuEntry, len(configs))
    	lastMatch := -1
    	for i, cfg := range configs {
    		dst, changed := cfg.config.makeURL(u)
    		if !changed {
    			lastMatch = i
    		}
    		// Use a relative URL to work in presence of stripping/redirects in webui.go.
    		rel := &url.URL{RawQuery: dst.RawQuery, ForceQuery: true}
    		result[i] = configMenuEntry{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/image/jpeg/scan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package jpeg
    
    import (
    	"image"
    )
    
    // makeImg allocates and initializes the destination image.
    func (d *decoder) makeImg(mxx, myy int) {
    	if d.nComp == 1 {
    		m := image.NewGray(image.Rect(0, 0, 8*mxx, 8*myy))
    		d.img1 = m.SubImage(image.Rect(0, 0, d.width, d.height)).(*image.Gray)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. src/syscall/js/js.go

    	// value chosen for being power of two, and enough to handle all web APIs
    	// in particular, note that WebGL2's texImage2D takes up to 10 arguments
    	const maxStackArgs = 16
    	if size <= maxStackArgs {
    		// as long as makeArgs is inlined, these will be stack-allocated
    		argVals = make([]Value, size, maxStackArgs)
    		argRefs = make([]ref, size, maxStackArgs)
    	} else {
    		// allocates on the heap, but exceeding maxStackArgs should be rare
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    			return true
    		}
    	}
    	return false
    }
    
    func openBrowser(url string, o *plugin.Options) {
    	// Construct URL.
    	baseURL, _ := gourl.Parse(url)
    	current := currentConfig()
    	u, _ := current.makeURL(*baseURL)
    
    	// Give server a little time to get ready.
    	time.Sleep(time.Millisecond * 500)
    
    	for _, b := range browsers() {
    		args := strings.Split(b, " ")
    		if len(args) == 0 {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		gvr.AuthorizationPolicy,
    		gvr.PeerAuthentication,
    		gvr.KubernetesGateway,
    		gvr.GatewayClass,
    		gvr.WorkloadEntry,
    		gvr.ServiceEntry,
    	} {
    		clienttest.MakeCRD(t, cl, crd)
    	}
    	idx := New(Options{
    		Client:          cl,
    		SystemNamespace: systemNS,
    		DomainSuffix:    "company.com",
    		ClusterID:       clusterID,
    		XDSUpdater:      up,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  10. src/reflect/all_test.go

    		}
    		if IsRO(vout3) {
    			t.Errorf("set(conversion output) %v is RO, should not be", vout3)
    		}
    		if !IsRO(MakeRO(v1).Convert(t1)) {
    			t.Errorf("RO self-conversion output %v is not RO, should be", v1)
    		}
    		if !IsRO(MakeRO(v1).Convert(t2)) {
    			t.Errorf("RO conversion output %v is not RO, should be", v1)
    		}
    	}
    
    	// Assume that of all the types we saw during the tests,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top