Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for elem1 (0.21 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. 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)
  4. 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)
  5. 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)
  6. 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