Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for wantReg (0.14 sec)

  1. src/cmd/compile/internal/test/testdata/cmp_test.go

    }
    
    func testCmp(t *testing.T) {
    	if wanted, got := true, eq_ssa(6); wanted != got {
    		t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got)
    	}
    	if wanted, got := false, eq_ssa(7); wanted != got {
    		t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got)
    	}
    	if wanted, got := false, neq_ssa(6); wanted != got {
    		t.Errorf("neq_ssa: expected %v, got %v\n", wanted, got)
    	}
    	if wanted, got := true, neq_ssa(7); wanted != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 903 bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/driver_focus.go

    			return numLabelUnits[key]
    		}
    		if wantKey == "" {
    			return func(s *profile.Sample) bool {
    				for key, vals := range s.NumLabel {
    					if labelFilter(vals, numLabelUnit(key)) {
    						return true
    					}
    				}
    				return false
    			}, nil
    		}
    		return func(s *profile.Sample) bool {
    			if vals, ok := s.NumLabel[wantKey]; ok {
    				return labelFilter(vals, numLabelUnit(wantKey))
    			}
    			return false
    		}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 23:33:06 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  4. test/typeparam/issue49027.dir/main.go

    	if x != s {
    		panic(fmt.Sprintf("got %s wanted %s", x, s))
    	}
    	y, ok := a.Conv2(s)
    	if !ok {
    		panic("conversion failed")
    	}
    	if y != s {
    		panic(fmt.Sprintf("got %s wanted %s", y, s))
    	}
    	z := a.Conv3(s)
    	if z != s {
    		panic(fmt.Sprintf("got %s wanted %s", z, s))
    	}
    	w := a.Conv4(a.Mystring(s))
    	if w != a.Mystring(s) {
    		panic(fmt.Sprintf("got %s wanted %s", w, s))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 617 bytes
    - Viewed (0)
  5. test/fixedbugs/issue14725.go

    }
    
    func main() {
    	if x := f1(); x != 1 {
    		panic(fmt.Sprintf("f1 returned %d, wanted 1", x))
    	}
    	if x := f2(); x != 1 {
    		panic(fmt.Sprintf("f2 returned %d, wanted 1", x))
    	}
    	if x := f3(true); x != 1 {
    		panic(fmt.Sprintf("f3(true) returned %d, wanted 1", x))
    	}
    	if x := f3(false); x != 1 {
    		panic(fmt.Sprintf("f3(false) returned %d, wanted 1", x))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 856 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go

    		t.Fatal("got field not found for 'CustomObject.nested', wanted found")
    	}
    	if nestedFieldType.Type.GetMessageType() != "CustomObject.nested" {
    		t.Errorf("got field type %v, wanted mock_template.nested", nestedFieldType.Type)
    	}
    	subnameFieldType, found := rt.FindFieldType("CustomObject.nested", "subname")
    	if !found {
    		t.Fatal("got field not found for 'CustomObject.nested.subname', wanted found")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. test/arenas/smoke.go

    		// that *i crashes for some reason. Still, why not check it.
    		log.Fatalf("bad i value: got %d, want %d", *i, iValue)
    	}
    
    	const wantLen = 125
    	const wantCap = 1912
    
    	sl := arena.MakeSlice[*int](a, wantLen, wantCap)
    	if len(sl) != wantLen {
    		log.Fatalf("bad arena slice length: got %d, want %d", len(sl), wantLen)
    	}
    	if cap(sl) != wantCap {
    		log.Fatalf("bad arena slice capacity: got %d, want %d", cap(sl), wantCap)
    	}
    	sl = sl[:cap(sl)]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 16 17:08:43 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/net/port_split_test.go

    		if e, a := item.scheme, scheme; e != a {
    			t.Errorf("%q: Wanted %q, got %q", item.in, e, a)
    		}
    		if e, a := item.name, name; e != a {
    			t.Errorf("%q: Wanted %q, got %q", item.in, e, a)
    		}
    		if e, a := item.port, port; e != a {
    			t.Errorf("%q: Wanted %q, got %q", item.in, e, a)
    		}
    		if e, a := item.valid, valid; e != a {
    			t.Errorf("%q: Wanted %t, got %t", item.in, e, a)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 2.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/iface_test.go

    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv2(t *testing.T) {
    	a := 5
    	sink = &a
    	i := interface{}(a)
    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv3(t *testing.T) {
    	x = 5
    	if got := e2int3(x); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. pilot/pkg/xds/debug_test.go

    				}
    				if (ss.ClusterSent != "") != wantSent {
    					errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID)
    				}
    				if (ss.ClusterAcked != "") != wantAcked {
    					errorHandler("wanted ClusterAcked set %v got %v for %v", wantAcked, ss.ClusterAcked, nodeID)
    				}
    				if (ss.ListenerSent != "") != wantSent {
    					errorHandler("wanted ListenerSent set %v got %v for %v", wantSent, ss.ListenerSent, nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top