Skip to content

Commit

Permalink
Conformance tests for has() on messages. (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLarson authored Apr 18, 2020
1 parent 7d99bde commit 02a12e7
Show file tree
Hide file tree
Showing 6 changed files with 556 additions and 167 deletions.
7 changes: 7 additions & 0 deletions proto/test/v1/proto2/test_all_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ message TestAllTypes {
NestedMessage single_nested_message = 21;
NestedEnum single_nested_enum = 22 [default = BAR];
}
optional NestedMessage standalone_message = 23;
optional NestedEnum standalone_enum = 24;

// Repeated
repeated int32 repeated_int32 = 31;
Expand Down Expand Up @@ -101,6 +103,11 @@ message NestedTestAllTypes {
optional TestAllTypes payload = 2;
}

// This proto has a required field.
message TestRequired {
required int32 required_int32 = 1;
}

// This proto tests that global enums are resolved correctly.
enum GlobalEnum {
GOO = 0;
Expand Down
Loading

0 comments on commit 02a12e7

Please sign in to comment.