Protobuf: added test for backward compability of messages, currently failing (proper parsing of unknown fields is needed)
This commit is contained in:
@@ -35,6 +35,8 @@ generate:
|
||||
./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/protoc-artifacts ./test/routeDone.proto
|
||||
./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/protoc-artifacts ./test/route.proto
|
||||
./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/protoc-artifacts ./test/cross-branch-access.proto
|
||||
./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/protoc-artifacts ./test/base.proto
|
||||
./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/protoc-artifacts ./test/extended.proto
|
||||
|
||||
debug:
|
||||
gdb --args ./protoc --kotlin_out=$$HOME/Downloads/carkot/proto/compiler/src ./test/addressbook.proto
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message SomeMessage {
|
||||
string stringField = 1;
|
||||
int32 int32Field = 2;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message ExtendedMessage {
|
||||
string stringField = 1;
|
||||
int32 int32Field = 2;
|
||||
double doubleField = 3;
|
||||
bytes bytesField = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user