Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 249 for perfunc (0.11 sec)

  1. src/cmd/covdata/subtractintersect.go

    				if s.imm != nil {
    					s.pruneCounters()
    				}
    				s.imm = make(map[pkfunc]struct{})
    			}
    		}
    		s.inidx = dirIdx
    	}
    }
    
    func (s *sstate) EndCounterDataFile(cdf string, cdr *decodecounter.CounterDataReader, dirIdx int) {
    }
    
    func (s *sstate) VisitFuncCounterData(data decodecounter.FuncPayload) {
    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    
    	if *verbflag >= 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 12:50:46 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue31412a.go

    // license that can be found in the LICENSE file.
    
    // This code was incorrectly flagged as erroneous by gccgo.
    
    package main
    
    type Name string
    
    type EFunc func(int) int
    
    func Register(f EFunc, names ...Name) int {
    	return f(len(names))
    }
    
    const (
    	B Name = "B"
    )
    
    func RegisterIt() {
    	n := B + "Duck"
    	d := B + "Goose"
    	f := func(x int) int { return x + 9 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:17:26 UTC 2019
    - 531 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/export.go

    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // importfunc declares symbol s as an imported function with type t.
    func importfunc(s *types.Sym, t *types.Type) {
    	fn := ir.NewFunc(src.NoXPos, src.NoXPos, s, t)
    	importsym(fn.Nname)
    }
    
    // importvar declares symbol s as an imported variable with type t.
    func importvar(s *types.Sym, t *types.Type) {
    	n := ir.NewNameAt(src.NoXPos, s, t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:28 UTC 2023
    - 838 bytes
    - Viewed (0)
  4. pkg/kube/krt/helpers.go

    	if meta.Namespace != nil && len(*meta.Namespace) > 0 {
    		return ptr.Of(Key[O](*meta.Namespace + "/" + *meta.Name))
    	}
    	return ptr.Of(Key[O](*meta.Name))
    }
    
    // keyFunc is the internal API key function that returns "namespace"/"name" or
    // "name" if "namespace" is empty
    func keyFunc(name, namespace string) string {
    	if len(namespace) == 0 {
    		return name
    	}
    	return namespace + "/" + name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    	var_.SetTypecheck(1)
    	var_.MarkNonNil() // mapaccess always returns a non-nil pointer
    
    	n.Lhs[0] = var_
    	init.Append(walkExpr(n, init))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    	t.Cleanup(func() { server.Terminate(t) })
    
    	newFunc := func() runtime.Object { return &corev1.Endpoints{} }
    	newListFunc := func() runtime.Object { return &corev1.EndpointsList{} }
    	sc.Codec = apitesting.TestStorageCodec(codecs, corev1.SchemeGroupVersion)
    
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "endpoints"}), newFunc, newListFunc, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go

    	}
    	meta.SetGenerateName("")
    	meta.SetGeneration(1)
    }
    
    type AssignFunc func([]runtime.Object) []runtime.Object
    type EmitFunc func(runtime.Object, string) error
    type GetFunc func(context.Context, runtime.Object) (runtime.Object, error)
    type InitWatchFunc func()
    type InjectErrFunc func(err error)
    type IsErrorFunc func(err error) bool
    type CreateFunc func(context.Context, runtime.Object) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  8. internal/jwt/parser_test.go

    	errorKeyFunc   = func(claim *MapClaims) ([]byte, error) { return nil, fmt.Errorf("error loading key") }
    )
    
    var jwtTestData = []struct {
    	name        string
    	tokenString string
    	keyfunc     func(*MapClaims) ([]byte, error)
    	claims      jwt.Claims
    	valid       bool
    	errors      int32
    }{
    	{
    		"basic",
    		"",
    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
  9. pkg/kube/informerfactory/factory.go

    	Start(stopCh <-chan struct{})
    
    	// InformerFor returns the SharedIndexInformer the provided type.
    	InformerFor(resource schema.GroupVersionResource, opts kubetypes.InformerOptions, newFunc NewInformerFunc) StartableInformer
    
    	// WaitForCacheSync blocks until all started informers' caches were synced
    	// or the stop channel gets closed.
    	WaitForCacheSync(stopCh <-chan struct{}) bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go

    // SharedInformerFactory a small interface to allow for adding an informer without an import cycle
    type SharedInformerFactory interface {
    	Start(stopCh <-chan struct{})
    	InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
    }
    
    // TweakListOptionsFunc is a function that transforms a v1.ListOptions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 16 22:25:28 UTC 2018
    - 1.4K bytes
    - Viewed (0)
Back to top