forked from protocolbuffers/protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide UT that reproduces issue protocolbuffers#3
- Loading branch information
pierrick
committed
May 27, 2020
1 parent
eeab3d1
commit 15fa089
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
|
||
import 'google/protobuf/any.proto'; | ||
import 'google/protobuf/wrappers.proto'; | ||
import 'google/protobuf/struct.proto'; | ||
|
||
package foo.errors; | ||
|
||
message AuthenticationErrorEnum { | ||
enum AuthenticationError { | ||
UNSPECIFIED = 0; | ||
UNKNOWN = 1; | ||
AUTHENTICATION_ERROR = 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
syntax = "proto3"; | ||
|
||
import 'google/protobuf/any.proto'; | ||
import 'google/protobuf/wrappers.proto'; | ||
import 'google/protobuf/struct.proto'; | ||
import 'proto/errors/authentication_error.proto'; | ||
|
||
package foo.errors; | ||
|
||
message ErrorCode { | ||
oneof error_code { | ||
AuthenticationErrorEnum.AuthenticationError authentication_error = 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters