- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for numSig (0.61 sec)
-
pkg/kubelet/apis/podresources/server_v1_test.go
podUID := types.UID("pod-uid") containerName := "container-name" numaID := int64(1) mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() devs := []*podresourcesapi.ContainerDevices{ { ResourceName: "resource", DeviceIds: []string{"dev0", "dev1"}, Topology: &podresourcesapi.TopologyInfo{Nodes: []*podresourcesapi.NUMANode{{ID: numaID}}}, }, } cpus := []int64{12, 23, 30}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
src/text/template/funcs.go
return reflect.Value{}, err } numIn := typ.NumIn() var dddType reflect.Type if typ.IsVariadic() { if len(args) < numIn-1 { return reflect.Value{}, fmt.Errorf("wrong number of args for %s: got %d want at least %d", name, len(args), numIn-1) } dddType = typ.In(numIn - 1).Elem() } else { if len(args) != numIn {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
src/text/template/exec.go
} typ := fun.Type() numIn := len(args) if !isMissing(final) { numIn++ } numFixed := len(args) if typ.IsVariadic() { numFixed = typ.NumIn() - 1 // last arg is the variadic one. if numIn < numFixed { s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args)) } } else if numIn != typ.NumIn() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
src/internal/reflectlite/type.go
func (t rtype) NumField() int { tt := t.Type.StructType() if tt == nil { panic("reflect: NumField of non-struct type") } return len(tt.Fields) } func (t rtype) NumIn() int { tt := t.Type.FuncType() if tt == nil { panic("reflect: NumIn of non-func type") } return int(tt.InCount) } func (t rtype) NumOut() int { tt := t.Type.FuncType() if tt == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/reflect/badlinkname.go
func badlinkname_rtype_Name(*rtype) string //go:linkname badlinkname_rtype_NumField reflect.(*rtype).NumField func badlinkname_rtype_NumField(*rtype) int //go:linkname badlinkname_rtype_NumIn reflect.(*rtype).NumIn func badlinkname_rtype_NumIn(*rtype) int //go:linkname badlinkname_rtype_NumMethod reflect.(*rtype).NumMethod func badlinkname_rtype_NumMethod(*rtype) int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 4.5K bytes - Viewed (0) -
src/reflect/type.go
} tt := (*abi.FuncType)(unsafe.Pointer(t)) return toType(tt.InSlice()[i]) } func (t *rtype) NumIn() int { if t.Kind() != Func { panic("reflect: NumIn of non-func type " + t.String()) } tt := (*abi.FuncType)(unsafe.Pointer(t)) return tt.NumIn() } func (t *rtype) NumOut() int { if t.Kind() != Func { panic("reflect: NumOut of non-func type " + t.String()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/math/rand/v2/regress_test.go
m := rv.Type().Method(i) mv := rv.Method(i) mt := mv.Type() if mt.NumOut() == 0 { continue } for repeat := 0; repeat < 20; repeat++ { var args []reflect.Value var argstr string if mt.NumIn() == 1 { var x any switch mt.In(0).Kind() { default: t.Fatalf("unexpected argument type for r.%s", m.Name) case reflect.Int: if m.Name == "Perm" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:03:11 UTC 2024 - 20.3K bytes - Viewed (0) -
src/testing/fuzz.go
// ff should be in the form func(*testing.T, ...interface{}) fn := reflect.ValueOf(ff) fnType := fn.Type() if fnType.Kind() != reflect.Func { panic("testing: F.Fuzz must receive a function") } if fnType.NumIn() < 2 || fnType.In(0) != reflect.TypeOf((*T)(nil)) { panic("testing: fuzz target must receive at least two arguments, where the first argument is a *T") } if fnType.NumOut() != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 22.9K bytes - Viewed (0) -
src/internal/abi/type.go
type FuncType struct { Type InCount uint16 OutCount uint16 // top bit is set if last input parameter is ... } func (t *FuncType) In(i int) *Type { return t.InSlice()[i] } func (t *FuncType) NumIn() int { return int(t.InCount) } func (t *FuncType) NumOut() int { return int(t.OutCount & (1<<15 - 1)) } func (t *FuncType) Out(i int) *Type { return (t.OutSlice()[i]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/reflect/all_test.go
typ := TypeOf(f) if typ.NumIn() == 2 && typ.In(0) == TypeOf(int(0)) { sl := typ.In(1) if sl.Kind() == Slice { if sl.Elem() == TypeOf(0.0) { // ok return } } } // Failed t.Errorf("want NumIn() = 2, In(0) = int, In(1) = []float64") s := fmt.Sprintf("have NumIn() = %d", typ.NumIn()) for i := 0; i < typ.NumIn(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)