- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for protoMessageType (0.12 sec)
-
pkg/config/schema/resource/schema_test.go
} func TestMustNewProtoInstance_Panic_Nil(t *testing.T) { g := NewWithT(t) defer func() { r := recover() g.Expect(r).NotTo(BeNil()) }() old := protoMessageType defer func() { protoMessageType = old }() protoMessageType = func(message protoreflect.FullName) (protoreflect.MessageType, error) { return nil, nil } s := Builder{ Kind: "Empty",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/test/util/structpath/instance.go
path = fmt.Sprintf(path, args...) return i.appendConstraint(func() error { typeOf := reflect.TypeOf(expected) protoMessageType := reflect.TypeOf((*proto.Message)(nil)).Elem() if typeOf.Implements(protoMessageType) { return i.equalsStruct(expected.(proto.Message), path) } switch kind := typeOf.Kind(); kind { case reflect.String:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 9.4K bytes - Viewed (0) -
pkg/config/schema/resource/schema.go
func getProtoMessageType(protoMessageName string) reflect.Type { t, err := protoMessageType(protoreflect.FullName(protoMessageName)) if err != nil || t == nil { return nil } return reflect.TypeOf(t.Zero().Interface()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 9.7K bytes - Viewed (0)