Skip to content

Commit

Permalink
tests/enum: fix protoc warning on enum value collision
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Mar 11, 2021
1 parent 76ca9ff commit 9378784
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
48 changes: 24 additions & 24 deletions tests/enum/enum_renames.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/enum/enum_renames.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ option go_package = "github.com/alta/protopatch/tests/enum";

enum Flavor {
option (go.enum).name = 'Flavour';
INVALID = 0;
UMAMI = 0;
SWEET = 1;
SALTY = 2;
SOUR = 3;
Expand Down
2 changes: 1 addition & 1 deletion tests/enum/enum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestNestedEnums(t *testing.T) {
func TestRenamedEnum(t *testing.T) {
tests.ValidateEnum(t, Flavour(0), Flavour_name, Flavour_value)
enums := []Flavour{
Flavour_INVALID,
Flavour_UMAMI,
Flavour_SWEET,
Flavour_SALTY,
Flavour_SOUR,
Expand Down

0 comments on commit 9378784

Please sign in to comment.