2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
如果单测函数上方不显示run test | debug test,需要安装Code Debugger(因为以前的go Test Explorer不再被维护了)
go test -v run TestXXX
go install github.com/go-delve/delve/cmd/[email protected]
dlv test
go test -v -cover ./{dir}/... -coverprofile={cov-out-file-path}
go tool cover --html={cov-out-file-path} -o={html-path}