Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 342 for wantReg (0.17 sec)

  1. src/cmd/internal/obj/riscv/obj.go

    func wantIntReg(ctxt *obj.Link, ins *instruction, pos string, r uint32) {
    	wantReg(ctxt, ins, pos, "integer", r, REG_X0, REG_X31)
    }
    
    // wantFloatReg checks that r is a floating-point register.
    func wantFloatReg(ctxt *obj.Link, ins *instruction, pos string, r uint32) {
    	wantReg(ctxt, ins, pos, "float", r, REG_F0, REG_F31)
    }
    
    // wantEvenOffset checks that the offset is a multiple of two.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. src/net/http/clientserver_test.go

    	}
    	res.Body.Close()
    
    	wantFoo := "bar"
    	wantLen := int64(-1)
    	if method == "OPTIONS" {
    		wantFoo = ""
    		wantLen = 0
    	}
    	if res.StatusCode != 200 {
    		t.Errorf("status code = %v; want %d", res.Status, 200)
    	}
    	if res.ContentLength != wantLen {
    		t.Errorf("content length = %v; want %d", res.ContentLength, wantLen)
    	}
    	if got := res.Header.Get("foo"); got != wantFoo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    		wantValue string
    	}{
    		{arg: "key=value", wantKey: "key", wantValue: "value"},
    		{arg: "key==value", wantKey: "key", wantValue: "=value"},
    		{arg: "key=", wantKey: "key", wantValue: ""},
    		{arg: "key", wantKey: "key", wantValue: ""},
    		{arg: "", wantKey: "", wantValue: ""},
    	}
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolumeclaim/strategy_test.go

    		"any enabled with volume ds": {
    			dataSource: volumeDataSource,
    			anyEnabled: true,
    			want:       volumeDataSource,
    			wantRef:    volumeDataSourceRef,
    		},
    		"any enabled with snapshot ds": {
    			dataSource: snapshotDataSource,
    			anyEnabled: true,
    			want:       snapshotDataSource,
    			wantRef:    snapshotDataSourceRef,
    		},
    		"any enabled with generic ds": {
    			dataSource: genericDataSource,
    			anyEnabled: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. pkg/api/persistentvolumeclaim/util_test.go

    			want:    snapshotDataSource,
    			wantRef: snapshotDataSourceRef,
    		},
    		"generic ds": {
    			spec:    core.PersistentVolumeClaimSpec{DataSource: genericDataSource},
    			want:    genericDataSource,
    			wantRef: genericDataSourceRef,
    		},
    		"core ds": {
    			spec:    core.PersistentVolumeClaimSpec{DataSource: coreDataSource},
    			want:    coreDataSource,
    			wantRef: coreDataSourceRef,
    		},
    		"volume ds ref": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		if contained != types.True {
    			t.Errorf("got %v, wanted list contains elem[%v] %v == true", contained, i, e)
    		}
    	}
    	if lv.Contains(types.String("fourth")) != types.False {
    		t.Errorf("got %v, wanted false 'fourth'", lv.Contains(types.String("fourth")))
    	}
    	if !types.IsError(lv.Contains(types.Int(-1))) {
    		t.Errorf("got %v, wanted error for invalid type", lv.Contains(types.Int(-1)))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  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