- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 987 for typeOf (0.17 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go
const ( fakeObjectItemsNum = 1000 exemptObjectIndex = fakeObjectItemsNum / 4 ) type SampleSpec struct { Flied int } type FooSpec struct { Flied int } type FooList struct { metav1.TypeMeta metav1.ListMeta Items []Foo } func (s *FooList) DeepCopyObject() runtime.Object { panic("unimplemented") } type SampleList struct { metav1.TypeMeta metav1.ListMeta Items []Sample }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 13:40:46 UTC 2023 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
} } // check that anything other than type and properties in metadata is forbidden tt = reflect.TypeOf(Structural{}) for i := 0; i < tt.NumField(); i++ { s := Structural{} x := reflect.ValueOf(&s).Elem() fuzzer.Fuzz(x.Field(i).Addr().Interface()) s.Type = "object" s.Properties = map[string]Structural{ "name": {}, "generateName": {}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
test/fixedbugs/issue19028.dir/main.go
package main import ( "reflect" fake "./a" // 2nd package with name "reflect" ) type T struct { _ fake.Type } func (T) f() {} func (T) G() (_ int) { return } func (T) H() (_, _ int) { return } func main() { var x T typ := reflect.TypeOf(x) for i := 0; i < typ.NumMethod(); i++ { _ = typ.Method(i) // must not crash }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 15 20:45:24 UTC 2020 - 569 bytes - Viewed (0) -
test/reflectmethod2.go
// assigned to interfaces, but only if reflect.Type.MethodByName is // never used. Test it here. package main import reflect1 "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M type MyType interface { MethodByName(string) (reflect1.Method, bool) } func main() { var t MyType = reflect1.TypeOf(v) m, _ := t.MethodByName("UniqueMethodName")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 719 bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/color.js
* * @version 2.3.77 * @website http://formvalidator.net/ * @author Victor Jonsson, http://victorjonsson.se * @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 2.8K bytes - Viewed (0) -
test/fixedbugs/issue65957.dir/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 05:32:14 UTC 2024 - 368 bytes - Viewed (0) -
security/pkg/pki/util/crypto_test.go
pem string keyType reflect.Type errMsg string }{ "Invalid PEM string": { pem: "Invalid PEM string", errMsg: "invalid PEM-encoded key", }, "Invalid PEM block type": { pem: certRSA, errMsg: "unsupported PEM block type for a private key: CERTIFICATE", }, "Parse RSA key": { pem: keyRSA, keyType: reflect.TypeOf(&rsa.PrivateKey{}), },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 14.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go
// if the type is "indirectly" converted to an interface // using reflection with a method descriptor as intermediate. // However, it uses MethodByName() with a constant name of // a method to look up. This does not disable the DCE like // Method(0) does. package main import "reflect" type S int func (s S) M() { println("S.M") } type I interface{ M() } type T float64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 777 bytes - Viewed (0) -
test/reflectmethod7.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // See issue 44207. package main import "reflect" type S int func (s S) M() {} func main() { t := reflect.TypeOf(S(0)) fn, ok := reflect.PointerTo(t).MethodByName("M") if !ok { panic("FAIL") } fn.Func.Call([]reflect.Value{reflect.New(t)})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 26 14:24:17 UTC 2021 - 421 bytes - Viewed (0) -
test/fixedbugs/issue52788.go
import ( "fmt" "reflect" ) func f(next func() bool) { for b := next(); b; b = next() { fmt.Printf("next() returned %v\n", b) } } func main() { next := reflect.MakeFunc(reflect.TypeOf((func() bool)(nil)), func(_ []reflect.Value) []reflect.Value { return []reflect.Value{reflect.ValueOf(false)} }) reflect.ValueOf(f).Call([]reflect.Value{next})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 09 16:02:28 UTC 2022 - 605 bytes - Viewed (0)