- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 140 for REFLECT (0.13 sec)
-
src/reflect/type.go
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()) } tt := (*abi.FuncType)(unsafe.Pointer(t)) return tt.NumOut() } func (t *rtype) Out(i int) Type { if t.Kind() != Func { panic("reflect: Out 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/encoding/json/decode_test.go
} } if tt.ptr == nil { return } typ := reflect.TypeOf(tt.ptr) if typ.Kind() != reflect.Pointer { t.Fatalf("%s: unmarshalTest.ptr %T is not a pointer type", tt.Where, tt.ptr) } typ = typ.Elem() // v = new(right-type) v := reflect.New(typ) if !reflect.DeepEqual(tt.ptr, v.Interface()) { // There's no reason for ptr to point to non-zero data,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0) -
pkg/kubelet/pod_workers_test.go
} if e, a := []syncPodRecord{{name: "pod1", updateType: kubetypes.SyncPodUpdate}}, processed[types.UID("2-static")]; !reflect.DeepEqual(e, a) { t.Fatalf("unexpected sync pod calls: %s", cmp.Diff(e, a)) } if e, a := map[string]types.UID{"pod1_test1": "2-static"}, podWorkers.startedStaticPodsByFullname; !reflect.DeepEqual(e, a) { t.Fatalf("unexpected started static pods: %s", cmp.Diff(e, a)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
if strings.HasPrefix(visit.path, ".ObjectMeta.ManagedFields[") { break } // if we don't already have a value, and contain structs, add an empty item so we can recurse item := reflect.New(visit.value.Type().Elem()).Elem() visit.value.Set(reflect.Append(visit.value, item)) toVisit = append(toVisit, testPath{path: visit.path + "[0]", value: visit.value.Index(0)})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
src/runtime/map.go
// then the iterator holds a pointers to the slice. if h.extra != nil { h.extra.oldoverflow = nil } h.flags &^= sameSizeGrow } } // Reflect stubs. Called from ../reflect/asm_*.s // reflect_makemap is for package reflect, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - gitee.com/quant1x/gox // - github.com/modern-go/reflect2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java
import org.gradle.internal.logging.text.TreeFormatter; import org.gradle.internal.reflect.ClassDetails; import org.gradle.internal.reflect.ClassInspector; import org.gradle.internal.reflect.JavaPropertyReflectionUtil; import org.gradle.internal.reflect.MethodSet; import org.gradle.internal.reflect.PropertyAccessorType; import org.gradle.internal.reflect.PropertyDetails; import org.gradle.internal.service.ServiceLookup;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 63K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"%s", reflect.ValueOf("hello"), "hello"}, {"%q", reflect.ValueOf("hello"), `"hello"`}, {"%#04x", reflect.ValueOf(256), "0x0100"}, // invalid reflect.Value doesn't crash. {"%v", reflect.Value{}, "<invalid reflect.Value>"}, {"%v", &reflect.Value{}, "<invalid Value>"}, {"%v", SI{reflect.Value{}}, "{<invalid Value>}"}, // Tests to check that not supported verbs generate an error string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
case "NextProtos": f.Set(reflect.ValueOf([]string{"a", "b"})) case "ServerName": f.Set(reflect.ValueOf("b")) case "ClientAuth": f.Set(reflect.ValueOf(VerifyClientCertIfGiven)) case "InsecureSkipVerify", "SessionTicketsDisabled", "DynamicRecordSizingDisabled", "PreferServerCipherSuites": f.Set(reflect.ValueOf(true)) case "MinVersion", "MaxVersion": f.Set(reflect.ValueOf(uint16(VersionTLS12)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
// Mounter.SetUp() err = csiMounter.SetUp(volume.MounterArgs{}) if tc.setupShouldFail { if err != nil { if tc.exitError != nil && reflect.TypeOf(tc.exitError) != reflect.TypeOf(err) { t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(tc.exitError), reflect.TypeOf(err), err) } t.Log(err) return } else { t.Error("test should fail, but no error occurred") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework.go
// - part 3: other plugins (excluded by part 1 & 2) in regular extension point. newPlugins := reflect.New(reflect.TypeOf(e.slicePtr).Elem()).Elem() // part 1 for _, name := range slice.CopyStrings(enabledSet.list) { if overridePlugins.has(name) { newPlugins = reflect.Append(newPlugins, reflect.ValueOf(f.pluginsMap[name])) enabledSet.delete(name) } } // part 2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 60.9K bytes - Viewed (0)