go如何做测试代码

文件>首选项>设置>搜索Test Flags 添加-v即可. 这样会打印print了.

 

一份实力代码:

//1_test.go
package ethereum import ( "testing" ) func Test1(t *testing.T) { // fmt.Print("dsaf") // print(uint64('1')) t.Log("dsaf") print('f') }

  

posted on 2023-10-23 11:26  张博的博客  阅读(7)  评论(0编辑  收藏  举报

导航