Skip to content

Commit

Permalink
Merge pull request #42 from alta/ydnar/cleanup
Browse files Browse the repository at this point in the history
Silence warnings
  • Loading branch information
ydnar authored Mar 11, 2021
2 parents 6960dad + 9378784 commit 83cc591
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 28 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ vet:
test: test-go test-cgo-disabled

test-go:
go test -i -mod=readonly -race ./...
go test -mod=readonly -v -race ./...

test-cgo-disabled:
CGO_ENABLED=0 go test -i -mod=readonly ./...
CGO_ENABLED=0 go test -mod=readonly -v ./...

go_module = $(shell go list -m)
Expand Down
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 83cc591

Please sign in to comment.