Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for nilfunc (0.57 sec)

  1. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(expectNode, node))
    		})
    	}
    
    }
    
    func TestReadyCondition(t *testing.T) {
    	now := time.Now()
    	before := now.Add(-time.Second)
    	nowFunc := func() time.Time { return now }
    
    	withCapacity := &v1.Node{
    		Status: v1.NodeStatus{
    			Capacity: v1.ResourceList{
    				v1.ResourceCPU:              *resource.NewMilliQuantity(2000, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    func (r *clientRecorder) GetReadsAndReset() uint64 {
    	return atomic.SwapUint64(&r.reads, 0)
    }
    
    type setupOptions struct {
    	client         func(testing.TB) *clientv3.Client
    	codec          runtime.Codec
    	newFunc        func() runtime.Object
    	newListFunc    func() runtime.Object
    	prefix         string
    	resourcePrefix string
    	groupResource  schema.GroupResource
    	transformer    value.Transformer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    }
    
    type LocalSlotSplitKey struct {
    	parent *LocalSlot
    	Off    int64       // offset of slot in N
    	Type   *types.Type // type of slot
    }
    
    // NewFunc returns a new, empty function object.
    // Caller must reset cache before calling NewFunc.
    func (c *Config) NewFunc(fe Frontend, cache *Cache) *Func {
    	return &Func{
    		fe:     fe,
    		Config: c,
    		Cache:  cache,
    
    		NamedValues:          make(map[LocalSlot][]*Value),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolume/storage/storage_test.go

    	hostPathType := new(api.HostPathType)
    	*hostPathType = api.HostPathType(pathType)
    	return hostPathType
    }
    
    func validNewPersistentVolume(name string) *api.PersistentVolume {
    	now := persistentvolume.NowFunc()
    	pv := &api.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: api.PersistentVolumeSpec{
    			Capacity: api.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/go/types/stmt.go

    	}
    
    	for _, scope := range scope.children {
    		// Don't go inside function literal scopes a second time;
    		// they are handled explicitly by funcBody.
    		if !scope.isFunc {
    			check.usage(scope)
    		}
    	}
    }
    
    // stmtContext is a bitset describing which
    // control-flow statements are permissible,
    // and provides additional context information
    // for better error messages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. src/database/sql/sql.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname drivers
    var drivers = make(map[string]driver.Driver)
    
    // nowFunc returns the current time; it's overridden in tests.
    var nowFunc = time.Now
    
    // Register makes a database driver available by the provided name.
    // If Register is called twice with the same name or if driver is nil,
    // it panics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  7. pkg/config/schema/kubeclient/common.go

    			},
    		)
    		setupInformer(opts, inf)
    		return inf
    	})
    }
    
    func setupInformer(opts ktypes.InformerOptions, inf cache.SharedIndexInformer) {
    	// It is important to set this in the newFunc rather than after InformerFor to avoid
    	// https://github.com/kubernetes/kubernetes/issues/117869
    	if opts.ObjectTransform != nil {
    		_ = inf.SetTransform(opts.ObjectTransform)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/slices/example_test.go

    func ExampleMinFunc() {
    	type Person struct {
    		Name string
    		Age  int
    	}
    	people := []Person{
    		{"Gopher", 13},
    		{"Bob", 5},
    		{"Vera", 24},
    		{"Bill", 5},
    	}
    	firstYoungest := slices.MinFunc(people, func(a, b Person) int {
    		return cmp.Compare(a.Age, b.Age)
    	})
    	fmt.Println(firstYoungest.Name)
    	// Output:
    	// Bob
    }
    
    func ExampleReplace() {
    	names := []string{"Alice", "Bob", "Vera", "Zac"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/stmt.go

    	}
    
    	for _, scope := range scope.children {
    		// Don't go inside function literal scopes a second time;
    		// they are handled explicitly by funcBody.
    		if !scope.isFunc {
    			check.usage(scope)
    		}
    	}
    }
    
    // stmtContext is a bitset describing which
    // control-flow statements are permissible,
    // and provides additional context information
    // for better error messages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/universe.go

    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top