- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for equalsStruct (0.14 sec)
-
pkg/test/util/structpath/instance.go
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: return i.equalsString(reflect.ValueOf(expected).String(), path) case reflect.Bool:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 9.4K bytes - Viewed (0)