Skip to content
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

Replace ast with dst for gocode #98

Merged
merged 7 commits into from
Jan 13, 2023
Merged

Replace ast with dst for gocode #98

merged 7 commits into from
Jan 13, 2023

Conversation

spinillos
Copy link
Member

It updates ast with dst for go files.

Copy link
Contributor

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just small changes in comments

encoding/gocode/gen.go Outdated Show resolved Hide resolved
encoding/gocode/gen.go Outdated Show resolved Hide resolved
encoding/gocode/gen.go Outdated Show resolved Hide resolved
@sdboyer
Copy link
Contributor

sdboyer commented Jan 13, 2023

This line made me crave some tests that even just minimally verify that output hasn't changed. i realize there are no tests for this right now - totally my fault - but maybe this is a good opportunity to add some.

@sdboyer
Copy link
Contributor

sdboyer commented Jan 13, 2023

Basically a txtar-based test like what we have for openapi should do the trick - something that shows outputs of the generator under different parameterizations of inputs

spinillos and others added 5 commits January 13, 2023 12:52
Co-authored-by: sam boyer <sdboyer@grafana.com>
Co-authored-by: sam boyer <sdboyer@grafana.com>
@spinillos spinillos marked this pull request as ready for review January 13, 2023 16:39
Copy link
Contributor

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks for adding the tests

@sdboyer sdboyer merged commit e0e8893 into main Jan 13, 2023
mildwonkey pushed a commit that referenced this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants