英文:
How to change the default message structure GoLand uses when generating an automated test
问题
我非常喜欢 GoLand 的生成测试功能。
我只想对它使用 gotest 框架显示的错误消息进行微小的调整。
我真的只想在 t.Errorf()
行中更改那个字符串,我该如何在配置中做到这一点?
我真的很想在函数的括号中添加参数,同时我也想将期望结果放在新的一行上。
英文:
I absolutely adore the generate test feature of GoLand.
I would just like to make a really minor adjustment to the error messages that it displays using the gotest framework.
I would really just want to change that string in the t.Errorf()
line, how can I do this in the configuration?
I'd really like to add the args in the parenthesis in the function also I would like to put the want to be on a new line
答案1
得分: 3
目前在 GoLand 中无法编辑“函数模板测试”。
请查看并遵循 GO-10290。
英文:
Edit Test for function template is not available in GoLand at the moment.
Please see and follow GO-10290.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论