Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 141 for subfield (0.14 sec)

  1. fastapi/_compat.py

                field.type_, BaseModel
            ):
                if field.sub_fields is not None:  # type: ignore[attr-defined]
                    for sub_field in field.sub_fields:  # type: ignore[attr-defined]
                        if not is_pv1_scalar_field(sub_field):
                            return False
                return True
            if _annotation_is_sequence(field.type_):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go

    	case reflect.Struct:
    		aFields := a.NumField()
    		bFields := b.NumField()
    		if aFields != bFields {
    			fatalTypeError(t, path, a, b, "mismatched field count")
    		}
    		for i := 0; i < aFields; i++ {
    			aField := a.Field(i)
    			bField := b.Field(i)
    			if aField.Name != bField.Name {
    				fatalTypeError(t, path, a, b, fmt.Sprintf("mismatched field name %d: %s %s", i, aField.Name, bField.Name))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    	}
    	fields := strings.Fields(string(bytes))
    	if len(fields) < 5 {
    		return 0, fmt.Errorf("not enough fields in /proc/loadavg")
    	}
    	subfields := strings.Split(fields[3], "/")
    	if len(subfields) != 2 {
    		return 0, fmt.Errorf("error parsing fourth field of /proc/loadavg")
    	}
    	return strconv.ParseInt(subfields[1], 10, 64)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/net/http/h2_error.go

    		return false
    	}
    	src := reflect.ValueOf(e)
    	srcType := src.Type()
    	numField := srcType.NumField()
    	if dstType.NumField() != numField {
    		return false
    	}
    	for i := 0; i < numField; i++ {
    		sf := srcType.Field(i)
    		df := dstType.Field(i)
    		if sf.Name != df.Name || !sf.Type.ConvertibleTo(df.Type) {
    			return false
    		}
    	}
    	for i := 0; i < numField; i++ {
    		df := dst.Field(i)
    		df.Set(src.Field(i).Convert(df.Type()))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 812 bytes
    - Viewed (0)
  5. src/internal/unsafeheader/unsafeheader_test.go

    		}
    		if f.Offset != rf.Offset {
    			t.Errorf("%v.%s has offset %d, but %v.%s has offset %d", h, f.Name, f.Offset, rh, rf.Name, rf.Offset)
    		}
    	}
    
    	if h.NumField() != rh.NumField() {
    		t.Errorf("%v has %d fields, but %v has %d", h, h.NumField(), rh, rh.NumField())
    	}
    	if h.Align() != rh.Align() {
    		t.Errorf("%v has alignment %d, but %v has alignment %d", h, h.Align(), rh, rh.Align())
    	}
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/core/v1/types_test.go

    func TestEphemeralContainer(t *testing.T) {
    	ephemeralType := reflect.TypeOf(EphemeralContainerCommon{})
    	containerType := reflect.TypeOf(Container{})
    
    	ephemeralFields := ephemeralType.NumField()
    	containerFields := containerType.NumField()
    	if containerFields != ephemeralFields {
    		t.Fatalf("%v has %d fields, %v has %d fields", ephemeralType, ephemeralFields, containerType, containerFields)
    	}
    	for i := 0; i < ephemeralFields; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 03:01:07 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	if len(requestDeclType.Fields) != requestType.NumField() {
    		t.Fatalf("expected %d fields for SubjectAccessReviewSpec, got %d", requestType.NumField(), len(requestDeclType.Fields))
    	}
    	resourceAttributesDeclType := buildResourceAttributesType(f, fs)
    	resourceAttributeType := reflect.TypeOf(v1.ResourceAttributes{})
    	if len(resourceAttributesDeclType.Fields) != resourceAttributeType.NumField() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		c = tconv(typecheck.NodAddr(n), types.Types[types.TUNSAFEPTR])
    		c = tconv(c, types.Types[types.TUINTPTR])
    		setField("beg", c, i)
    		// Assign globals[i].size.
    		g := n.(*ir.Name)
    		size := g.Type().Size()
    		c = typecheck.DefaultLit(ir.NewInt(base.Pos, size), types.Types[types.TUINTPTR])
    		setField("size", c, i)
    		// Assign globals[i].sizeWithRedzone.
    		rzSize := GetRedzoneSizeForGlobal(size)
    		sizeWithRz := rzSize + size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. pkg/apis/core/types_test.go

    func TestEphemeralContainer(t *testing.T) {
    	ephemeralType := reflect.TypeOf(EphemeralContainerCommon{})
    	containerType := reflect.TypeOf(Container{})
    
    	ephemeralFields := ephemeralType.NumField()
    	containerFields := containerType.NumField()
    	if containerFields != ephemeralFields {
    		t.Fatalf("%v has %d fields, %v has %d fields", ephemeralType, ephemeralFields, containerType, containerFields)
    	}
    	for i := 0; i < ephemeralFields; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 03:01:07 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. utils/tests/utils.go

    				return
    			}
    		}
    
    		if reflect.ValueOf(got).Kind() == reflect.Struct {
    			if reflect.ValueOf(expect).Kind() == reflect.Struct {
    				if reflect.ValueOf(got).NumField() == reflect.ValueOf(expect).NumField() {
    					exported := false
    					for i := 0; i < reflect.ValueOf(got).NumField(); i++ {
    						if fieldStruct := reflect.ValueOf(got).Type().Field(i); ast.IsExported(fieldStruct.Name) {
    							exported = true
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top