protobuf-go/proto
Lasse Folger f102ec6532 all: add more test for editions and fix some bugs in the implementation
There are several minor fixes:
* fix the unmarshaler for the field options (it used the wrong field numbers).
* fix the unmarshaler to always initialize the file options with the appropriate defaults.
* fix the coder selection to work properly for fields with implicit presence tracking (they used the coders for explicit tracking).
* fix the dynamic message created from a descriptor for an editions using proto to use HasPresence instead of a syntax check for proto3

Change-Id: Ic13bc22a71aa9f93b476e5edd650d4d2ab5dcb98
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/564455
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2024-02-16 14:47:55 +00:00
..
bench_test.go all: fix typos 2022-05-19 09:32:38 +00:00
checkinit_test.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
checkinit.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
decode_gen.go all: return less-specific, but more informative wire unmarshal errors 2020-07-23 20:09:00 +00:00
decode_test.go internal/impl: make errInvalidUTF8 be a proto.Error 2020-07-24 21:43:34 +00:00
decode.go all: modernize documentation 2023-09-05 14:55:28 +00:00
doc.go all: modernize documentation 2023-09-05 14:55:28 +00:00
encode_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
encode_test.go all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
encode.go all: modernize documentation 2023-09-05 14:55:28 +00:00
equal_test.go proto: fix compilation failure in tests 2022-07-21 06:22:01 +00:00
equal.go proto: document Equal behavior of invalid messages 2023-02-07 08:52:30 +00:00
extension_test.go all: remove duplicate imports 2022-05-23 17:24:26 +00:00
extension.go all: modernize documentation 2023-09-05 14:55:28 +00:00
merge_test.go all: implement support for proto3 optional semantics 2020-04-29 20:02:24 +00:00
merge.go all: modernize documentation 2023-09-05 14:55:28 +00:00
messageset_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
messageset.go internal/order: add a package for ordered iteration over messages and maps 2020-07-01 18:57:38 +00:00
methods_test.go all: gofmt all 2022-01-04 22:57:54 +00:00
nil_test.go all: improve extension validation 2020-04-23 06:01:13 +00:00
noenforceutf8_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
proto_methods.go all: gofmt all 2022-01-04 22:57:54 +00:00
proto_reflect.go all: gofmt all 2022-01-04 22:57:54 +00:00
proto.go all: modernize documentation 2023-09-05 14:55:28 +00:00
reset_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
reset.go all: improve panic messages for better debugability 2020-05-05 21:10:54 +00:00
size_gen.go all: funnel similar functionality through a single function 2020-05-15 18:21:49 +00:00
size.go proto: store the size of tag to avoid multiple calculations 2023-06-06 12:13:21 +00:00
testmessages_test.go all: add more test for editions and fix some bugs in the implementation 2024-02-16 14:47:55 +00:00
validate_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
weak_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
wrappers.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00