protobuf-go/proto
Damien Neil 3d0706ac2e proto, internal/impl: make IsInitialized more consistent
Make the fast-path and slow-path versions of IsInitialized report
exactly the same errors: An errors.RequiredNotSet containing the
full name of one of the unset required fields.

Bugfix: Fast-path IsInitialized on a nil message reports an error only
when the message directly contains required fields.

Bugfix: Include fast-path IsInitialized in legacy messageIfaceWrapper.

Fixes golang/protobuf#887

Change-Id: Ia5e4b386f8c23f6f855d995f4a098b1338acbae3
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185397
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-07-09 19:49:22 +00:00
..
bench_test.go proto: bench_test fixes 2019-07-09 19:32:32 +00:00
decode_gen.go all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
decode_test.go proto, internal/impl: make IsInitialized more consistent 2019-07-09 19:49:22 +00:00
decode.go all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
doc.go proto, internal/impl: make IsInitialized more consistent 2019-07-09 19:49:22 +00:00
encode_gen.go proto, internal/impl: avoid string->[]byte conversions 2019-06-24 17:41:45 +00:00
encode_test.go all: remove dependency on proto v1 2019-07-03 04:59:17 +00:00
encode.go all: remove protoreflect.Message.Len 2019-06-25 21:59:46 +00:00
equal_test.go all: remove dependency on proto v1 2019-07-03 04:59:17 +00:00
equal.go all: remove protoreflect.Message.Len 2019-06-25 21:59:46 +00:00
isinit_test.go proto, internal/impl: make IsInitialized more consistent 2019-07-09 19:49:22 +00:00
isinit.go proto, internal/impl: make IsInitialized more consistent 2019-07-09 19:49:22 +00:00
merge_test.go proto: implement Merge 2019-06-24 22:36:08 +00:00
merge.go proto: implement Merge 2019-06-24 22:36:08 +00:00
proto_methods.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
proto_reflect.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
proto.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
reset_test.go all: remove protoreflect.Message.Len 2019-06-25 21:59:46 +00:00
reset.go proto: fix memory aliasing bug in Reset 2019-06-20 19:48:37 +00:00
size_gen.go proto, internal/impl: avoid string->[]byte conversions 2019-06-24 17:41:45 +00:00
size.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00