-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Go names case #142
Fix Go names case #142
Conversation
d0f46fc
to
0b36567
Compare
@@ -0,0 +1,15 @@ | |||
module dummy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go.mod is to prevent generated code from being scanned as part of avro code
0b36567
to
73f4520
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self approving 😁
@@ -75,3 +78,17 @@ func TestShouldImportAvroTypeGen(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestGenerate(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -0,0 +1,135 @@ | |||
|
|||
// Code generated by avrogen. DO NOT EDIT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation looks pretty weird :(
Version 0.4.5 introduced a regression where the case for generated Go code changed.
This PR restores the original behavior.
Tests
Non regression unit tests have been introduced, using golden files.
Sample test schema is an actual file taken from contract repo (billing_and_charging/entities/attempt/v1/attempt.avsc)