go test 測試單個文件和測試單個函數

1,測試單個文件,必定要帶上被測試的原文件測試     go test -v  wechat_test.go wechat.go class 2,測試單個方法test     go test -v -test.run TestRefreshAccessToken方法
相關文章
相關標籤/搜索