Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,818 for FUNC (0.12 sec)

  1. pkg/scheduler/testing/wrappers.go

    // MakePod creates a Pod wrapper.
    func MakePod() *PodWrapper {
    	return &PodWrapper{v1.Pod{}}
    }
    
    // Obj returns the inner Pod.
    func (p *PodWrapper) Obj() *v1.Pod {
    	return &p.Pod
    }
    
    // Name sets `s` as the name of the inner pod.
    func (p *PodWrapper) Name(s string) *PodWrapper {
    	p.SetName(s)
    	return p
    }
    
    // UID sets `s` as the UID of the inner pod.
    func (p *PodWrapper) UID(s string) *PodWrapper {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/claiminfo_test.go

    		funcGen     func(cache *claimInfoCache) func() error
    		wantErr     bool
    	}{
    		{
    			description: "cache is locked inside a function",
    			funcGen: func(cache *claimInfoCache) func() error {
    				return func() error {
    					if cache.RWMutex.TryLock() {
    						return errors.New("Lock succeeded")
    					}
    					return nil
    				}
    			},
    		},
    		{
    			description: "cache is Rlocked inside a function",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/builtins_test.go

    	{"new", `_ = new(int)`, `func(int) *int`},
    	{"new", `type T struct{}; _ = new(T)`, `func(p.T) *p.T`},
    
    	{"panic", `panic(0)`, `func(interface{})`},
    	{"panic", `panic("foo")`, `func(interface{})`},
    
    	{"print", `print()`, `func()`},
    	{"print", `print(0)`, `func(int)`},
    	{"print", `print(1, 2.0, "foo", true)`, `func(int, float64, string, bool)`},
    
    	{"println", `println()`, `func()`},
    	{"println", `println(0)`, `func(int)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pkg/apis/batch/v1/zz_generated.conversion.go

    	apiscorev1 "k8s.io/kubernetes/pkg/apis/core/v1"
    )
    
    func init() {
    	localSchemeBuilder.Register(RegisterConversions)
    }
    
    // RegisterConversions adds conversion functions to the given scheme.
    // Public to allow building arbitrary schemes.
    func RegisterConversions(s *runtime.Scheme) error {
    	if err := s.AddGeneratedConversionFunc((*v1.CronJob)(nil), (*batch.CronJob)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  5. src/sort/sort_test.go

    					}
    				}
    			}
    		}
    	}
    }
    
    func TestSortBM(t *testing.T) {
    	testBentleyMcIlroy(t, Sort, func(n int) int { return n * lg(n) * 12 / 10 })
    }
    
    func TestHeapsortBM(t *testing.T) {
    	testBentleyMcIlroy(t, Heapsort, func(n int) int { return n * lg(n) * 12 / 10 })
    }
    
    func TestStableBM(t *testing.T) {
    	testBentleyMcIlroy(t, Stable, func(n int) int { return n * lg(n) * lg(n) / 3 })
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/tests/prepare_lifting.mlir

    // -----
    
    func.func @remove_check_numerics_op(%arg0: tensor<*xf32>) -> tensor<*xf32> {
      %0 = "tf.CheckNumerics"(%arg0) {device = "", message = "transformer"} : (tensor<*xf32>) -> tensor<*xf32>
      func.return %0 : tensor<*xf32>
    }
    
    // CHECK: func @remove_check_numerics_op
    // CHECK: return %arg0 : tensor<*xf32>
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. src/math/rand/v2/rand_test.go

    			tests := [...]struct {
    				name string
    				fn   func() int
    			}{
    				{name: "Int32N", fn: func() int { return int(r.Int32N(int32(nfact))) }},
    				{name: "Perm", fn: func() int { return encodePerm(r.Perm(n)) }},
    				{name: "Shuffle", fn: func() int {
    					// Generate permutation using Shuffle.
    					for i := range p {
    						p[i] = i
    					}
    					r.Shuffle(n, func(i, j int) { p[i], p[j] = p[j], p[i] })
    					return encodePerm(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. src/time/sleep_test.go

    	t.Errorf("saw %d errors", len(errs))
    	logErrs()
    }
    
    func TestAfterQueuing(t *testing.T) {
    	t.Run("impl=chan", func(t *testing.T) {
    		testAfterQueuing(t, After)
    	})
    	t.Run("impl=func", func(t *testing.T) {
    		testAfterQueuing(t, func(d Duration) <-chan Time { return newTimerFunc(d).C })
    	})
    }
    
    func testAfterQueuing(t *testing.T, after func(Duration) <-chan Time) {
    	// This test flakes out on some systems,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. src/go/types/object.go

    func (obj *object) Id() string { return Id(obj.pkg, obj.name) }
    
    func (obj *object) String() string      { panic("abstract") }
    func (obj *object) order() uint32       { return obj.order_ }
    func (obj *object) color() color        { return obj.color_ }
    func (obj *object) scopePos() token.Pos { return obj.scopePos_ }
    
    func (obj *object) setParent(parent *Scope)   { obj.parent = parent }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. src/time/tick_test.go

    	done := make(chan bool)
    	AfterFunc(60*Second, func() { close(done) })
    
    	// Set up a queuing goroutine to ping pong through the scheduler.
    	inQ := make(chan func())
    	outQ := make(chan func())
    
    	defer close(inQ)
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		defer close(outQ)
    		var q []func()
    		for {
    			var sendTo chan func()
    			var send func()
    			if len(q) > 0 {
    				sendTo = outQ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top