Hi all, In Go, is it acceptable to name tests using underscores for logical grouping of the specific scenario you're testing (e.g., TestFuncName_NilFoo_OneBar), or should one never use underscores for logical grouping (e.g., is TestFuncNameNilFooTwoBars preferred)? I've seen this in a few places with underscores in various stack-overflow postings and articles, and feel it helps readability of the test name and understanding what scenario is being tested, but couldn't find anything definitive on it.
And given the recommendation of splitting non-error and error cases up <https://g3doc.corp.google.com/go/g3doc/unittests-worked-examples.md?cl=head#error-or-not>, if underscores are ok, would it then be reasonable to name the tests where FuncName does not produce an error TestFuncName_{Scenario} and the tests that should produce an error TestFuncName_{Scenario}_Errors? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.