protobuf-go/internal
Joe Tsai fb30439f55 testing/protopack: add Message.UnmarshalAbductive
The protobuf wire format is insufficiently self-decribing such that
it is impossible to know whether for sure whether an unknown bytes value
is a sub-message or not. However, protopack is primarily used for debugging
where a best-effort guess is still very useful.

The Message.UnmarshalAbductive unmarshals an unknown bytes value as a message
if it is syntactically well-formed. Otherwise, it is left as is.

Change-Id: I5e2b4b995e2b5eb60942a242558bf4cea1da9891
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/309669
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Damien Neil <dneil@google.com>
2021-04-14 20:38:42 +00:00
..
benchmarks all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
cmd testing/protopack: add Message.UnmarshalAbductive 2021-04-14 20:38:42 +00:00
conformance all: update protobuf toolchain dependency 2021-03-03 01:59:11 +00:00
descfmt internal/descfmt: always include type name in FormatList 2021-02-22 23:39:21 +00:00
descopts
detrand internal/impl: introduce instability to protoreflect.Message.Range order 2020-07-01 17:34:30 +00:00
encoding reflect: add protopath and protorange packages 2021-04-01 23:09:19 +00:00
errors all: scrub all TODOs 2020-02-10 19:28:48 +00:00
filedesc internal/filedesc: remove ProtoLegacyRawDesc method 2021-03-03 02:26:38 +00:00
filetype
flags all: fix golint violations 2020-03-21 00:04:20 +00:00
fuzz internal/fuzz: support coverage builds with oss-fuzz 2020-11-24 20:15:59 +00:00
fuzztest internal/fuzztest: set cap to len on test byte slice 2020-02-05 22:46:04 +00:00
genid cmd/protoc-gen-go: generate package documentation for well-known types 2020-06-22 19:32:21 +00:00
impl internal/impl: add runtime support for aberrant messages 2021-03-16 02:41:12 +00:00
msgfmt reflect: add protopath and protorange packages 2021-04-01 23:09:19 +00:00
order internal/order: add a package for ordered iteration over messages and maps 2020-07-01 18:57:38 +00:00
pragma all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
protobuild all: fix tests for 32-bit architectures 2020-07-08 22:37:09 +00:00
protolegacy all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
set
strs
testprotos reflect: add protopath and protorange packages 2021-04-01 23:09:19 +00:00
version all: start v1.26.0-devel 2021-03-18 00:28:12 +00:00
weakdeps all: add weak dependency on github.com/golang/protobuf 2021-03-18 00:24:57 +00:00