-
Notifications
You must be signed in to change notification settings - Fork 346
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
Underscores in Generated Tests #106
Comments
@taiidani: It was a solution to the fact that in Golang you can have a function called That being said, there was no formal discussion with the Go core team about this feature, and I would love to get other opinions. |
Ah, thank you for the explanation! Yes the discussion on our side centered mainly around aesthetics. Not a big deal, but it cut a swath through our team on which each engineer preferred. We've been using the test auto-generator built into VS Code's Golang extension to get quickly generated table tests. Some of the argument centered exactly around your explanation -- that in order to delineate between exported and unexported functions some extra symbol (the If you think it's worth additional discussion, perhaps I should create an equivalent issue in the main golang/go repository? Either way, thanks again for clarifying! |
@taiidani: I agree, it might be worth reaching out to the Golang team and getting their opinion. |
@cweill Upgraded this to a proposal issue in golang/go: golang/go#33688 |
Our team is currently having a discussion over underscores being present in the generated Tests for
gotests
. These underscores appear to match the naming convention defined in https://golang.org/pkg/testing/#hdr-Examples but that convention implies that is for Examples only, not Tests.Wondering what discussion occurred that led to this convention in
gotests
applying for the generated Tests? We'd love to know!The text was updated successfully, but these errors were encountered: