Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 235 for wantfns (0.14 sec)

  1. pkg/scheduler/scheduler_test.go

    			for e, fns := range got {
    				wantfns, ok := tt.want[e]
    				if !ok {
    					t.Errorf("got unexpected event %v", e)
    					continue
    				}
    				if len(fns) != len(wantfns) {
    					t.Errorf("got %v queueing hint functions, want %v", len(fns), len(wantfns))
    					continue
    				}
    				for i, fn := range fns {
    					if fn.PluginName != wantfns[i].PluginName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  2. src/database/sql/convert_test.go

    		}
    		if ct.wantint != 0 && ct.wantint != intValue(ct.d) {
    			errf("want int %d, got %d", ct.wantint, intValue(ct.d))
    		}
    		if ct.wantuint != 0 && ct.wantuint != uintValue(ct.d) {
    			errf("want uint %d, got %d", ct.wantuint, uintValue(ct.d))
    		}
    		if ct.wantf32 != 0 && ct.wantf32 != float32Value(ct.d) {
    			errf("want float32 %v, got %v", ct.wantf32, float32Value(ct.d))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. pkg/kubelet/certificate/kubelet_test.go

    		addresses    []v1.NodeAddress
    		wantDNSNames []string
    		wantIPs      []net.IP
    	}{
    		{
    			name:         "empty",
    			addresses:    nil,
    			wantDNSNames: nil,
    			wantIPs:      nil,
    		},
    		{
    			name:         "ignore empty values",
    			addresses:    []v1.NodeAddress{{Type: v1.NodeHostName, Address: ""}},
    			wantDNSNames: nil,
    			wantIPs:      nil,
    		},
    		{
    			name: "ignore invalid IPs",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/internal/coverage/cformat/fmt_test.go

    	}
    
    	if err := fm.EmitFuncs(&b4); err != nil {
    		t.Fatalf("EmitFuncs returned %v", err)
    	}
    	wantFuncs := strings.TrimSpace(`
    p.go:10:	f1		33.3%
    q.go:20:	f2		75.0%
    total		(statements)	62.5%`)
    	gotFuncs := strings.TrimSpace(b4.String())
    	if wantFuncs != gotFuncs {
    		t.Errorf("emit funcs: got:\n%s\nwant:\n%s\n", gotFuncs, wantFuncs)
    	}
    	if false {
    		t.Logf("text is %s\n", b1.String())
    		t.Logf("perc is %s\n", b2.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/ingress/status.go

    	sort.SliceStable(curIPs, lessLoadBalancerIngress(curIPs))
    
    	wantIPs := sliceToStatus(s.runningAddresses())
    
    	if ingressSliceEqual(wantIPs, curIPs) {
    		log.Debugf("ingress has no change, no action")
    		return nil
    	}
    
    	log.Infof("updating IPs (%v)", wantIPs)
    	ing = ing.DeepCopy()
    	ing.Status.LoadBalancer.Ingress = wantIPs
    	_, err := s.ingresses.UpdateStatus(ing)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. src/encoding/binary/varint_test.go

    			wantValue: math.MaxUint64 - 40,
    			wantN:     10,
    		},
    		{
    			name:      "invalid: with more than MaxVarintLen64 bytes",
    			in:        []byte{0xd7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01},
    			wantN:     -11,
    			wantValue: 0,
    		},
    		{
    			name:      "invalid: 10th byte",
    			in:        []byte{0xd7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f},
    			wantN:     -10,
    			wantValue: 0,
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 23:09:19 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/internal/trace/summary_test.go

    	}
    
    	switch wantEnd {
    	case trace.EventBad:
    		if region.End != nil {
    			t.Errorf("expected nil region end event, got\n%s", region.End.String())
    		}
    	case trace.EventStateTransition, trace.EventRegionEnd:
    		if region.End == nil {
    			t.Error("expected non-nil region end event, got nil")
    		}
    		kind := region.End.Kind()
    		if kind != wantEnd {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/short_test.go

    	panic("unreached")
    }
    
    func testAnd(t *testing.T, arg1, arg2, wantRes bool) {
    	testShortCircuit(t, "AND", arg1, arg2, and_ssa, arg1, wantRes)
    }
    func testOr(t *testing.T, arg1, arg2, wantRes bool) {
    	testShortCircuit(t, "OR", arg1, arg2, or_ssa, !arg1, wantRes)
    }
    
    func testShortCircuit(t *testing.T, opName string, arg1, arg2 bool, fn func(bool, bool) bool, wantRightCall, wantRes bool) {
    	rightCalled = false
    	got := fn(arg1, arg2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

    How to contribute
    =================
    
    Thank you so much for wanting to contribute to Guava! Here are a few important
    things you should know about contributing:
    
    1.  API changes require discussion, use cases, etc. Code comes later.
    2.  Pull requests are great for small fixes for bugs, documentation, etc.
    3.  Pull requests are not merged directly into the master branch.
    4.  Code contributions require signing a Google CLA.
    
    API changes
    -----------
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top