Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for elem3 (0.06 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    	if p := res.Underlying().(*Pointer).Elem(); p != res {
    		t.Fatalf("unexpected result type: %s points to %s", res, p)
    	}
    }
    
    func TestInstantiateConcurrent(t *testing.T) {
    	const src = `package p
    
    type I[P any] interface {
    	m(P)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    	if p := res.Underlying().(*Pointer).Elem(); p != res {
    		t.Fatalf("unexpected result type: %s points to %s", res, p)
    	}
    }
    
    func TestInstantiateConcurrent(t *testing.T) {
    	const src = `package p
    
    type I[P any] interface {
    	m(P)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. pkg/ctrlz/assets/static/js/jquery-3.2.1.slim.min.js

    spatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},hand...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 68K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    				transformer := transformerFromOverrides(transformers, schema.ParseGroupResource(resource))
    				transformerName := string(
    					reflect.ValueOf(transformer).Elem().FieldByName("transformers").Index(0).FieldByName("Prefix").Bytes(),
    				)
    
    				if transformerName != expectedTransformerName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  5. src/crypto/tls/tls_test.go

    	if called != (1<<expectedCount)-1 {
    		t.Fatalf("expected %d calls but saw calls %b", expectedCount, called)
    	}
    }
    
    func TestCloneNonFuncFields(t *testing.T) {
    	var c1 Config
    	v := reflect.ValueOf(&c1).Elem()
    
    	typ := v.Type()
    	for i := 0; i < typ.NumField(); i++ {
    		f := v.Field(i)
    		// testing/quick can't handle functions or interfaces and so
    		// isn't used here.
    		switch fn := typ.Field(i).Name; fn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/ARM.rules

    (OffPtr [off] ptr) => (ADDconst [int32(off)] ptr)
    
    (Addr {sym} base) => (MOVWaddr {sym} base)
    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (MOVWaddr {sym} (SPanchored base mem))
    (LocalAddr <t> {sym} base _)  && !t.Elem().HasPointers() => (MOVWaddr {sym} base)
    
    // loads
    (Load <t> ptr mem) && t.IsBoolean() => (MOVBUload ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (HasCPUFeature {s}) => (SETNE (CMPLconst [0] (LoweredHasCPUFeature {s})))
    (Addr {sym} base) => (LEAQ {sym} base)
    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (LEAQ {sym} (SPanchored base mem))
    (LocalAddr <t> {sym} base _)  && !t.Elem().HasPointers() => (LEAQ {sym} base)
    
    (MOVBstore [off] {sym} ptr y:(SETL x) mem) && y.Uses == 1 => (SETLstore [off] {sym} ptr x mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal_test.go

    			`</top>` {
    			// TODO(rogpeppe): re-enable this test in
    			// https://go-review.googlesource.com/#/c/5910/
    			continue
    		}
    
    		vt := reflect.TypeOf(test.Value)
    		dest := reflect.New(vt.Elem()).Interface()
    		err := Unmarshal([]byte(test.ExpectXML), dest)
    
    		t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {
    			switch fix := dest.(type) {
    			case *Feed:
    				fix.Author.InnerXML = ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    		// these fields are chosen such that, if status is extracted as properties["status"], it's validation is not lost.
    		if statusSubresourceEnabled {
    			v := reflect.ValueOf(schema).Elem()
    			for i := 0; i < v.NumField(); i++ {
    				// skip zero values
    				if value := v.Field(i).Interface(); reflect.DeepEqual(value, reflect.Zero(reflect.TypeOf(value)).Interface()) {
    					continue
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener_test.go

    		}
    	}
    }
    
    // Test to catch new fields in FilterChainMatch message.
    func TestFilterChainMatchFields(t *testing.T) {
    	fcm := listener.FilterChainMatch{}
    	e := reflect.ValueOf(&fcm).Elem()
    	// If this fails, that means new fields have been added to FilterChainMatch, filterChainMatchEqual function needs to be updated.
    	if e.NumField() != 14 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
Back to top