commit | f26172248d71952940c147431ff5598dea7c882e | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Fri Sep 20 17:57:39 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Wed Feb 12 18:14:09 2020 +0000 |
tree | b8a45bf695da552cf809d9ef9adfcf2b5c9181b8 | |
parent | e76af4be5e8ecc89b68ca63c581a0290bf7fed2c [diff] |
proto: add Merge tests for aberrant inputs The generated Go code does not perfectly represent the protobuf data model. As such, it is possible to construct Go message values that could not otherwise be constructed through Unmarshal or Merge. This CL adds a test to exercise some of the boundary conditions. The tests do not necessarily lock in the current behavior, but provides a way for us to know when they have changed (either intentionally or not). Change-Id: I389ef97c2fcf037595ad553baf5270d7bee9673b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/196738 Reviewed-by: Damien Neil <dneil@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.