Skip to content

Commit 3ed0fc6

Browse files
committed
protoc-gen-go: add test case for deprecated oneof field
1 parent d7fc201 commit 3ed0fc6

File tree

2 files changed

+108
-21
lines changed

2 files changed

+108
-21
lines changed

protoc-gen-go/testdata/deprecated/deprecated.pb.go

Lines changed: 103 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protoc-gen-go/testdata/deprecated/deprecated.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ message DeprecatedResponse {
4949
option deprecated = true;
5050
// DeprecatedField contains a DeprecatedEnum.
5151
DeprecatedEnum deprecated_field = 1 [deprecated=true];
52+
// DeprecatedOneof contains a deprecated field.
53+
oneof deprecated_oneof {
54+
// DeprecatedOneofField is a deprecated field.
55+
string deprecated_oneof_field = 2 [deprecated=true];
56+
}
5257
}
5358

5459
// DeprecatedEnum contains deprecated values.

0 commit comments

Comments
 (0)