ZhangZhihui's Blog  

Right click the function name. 

Select item 'Go: Generate Unit Tests for Function' in the pop-up menu:

A test file named <file name>_test.go is generated for you:

If you got below error message, click the Install button to install gotests:

 

posted on 2023-09-21 09:36  ZhangZhihuiAAA  阅读(44)  评论(0编辑  收藏  举报