專案結構:
-MakeFile
-DockerFileForLogging
-DockerFileForMonitor
-Logging
-go files
-go.mod
-Monitor
-go files
-go.mod
當我嘗試在這個專案上生成和運行測驗時,我得到主模塊不包含包 /*/**/.../Logging。
命令 :
go test -race -coverprofile=coverage.out ./logging/...
go test -race -coverprofile=coverage.out ./monitor/...
嘗試了多個命令,但我不斷收到不同的錯誤。
uj5u.com熱心網友回復:
而不是使用...,我相信正確的應該是*
就像這個例子:
go test -race -coverprofile=coverage.out ./logging/*
go test -race -coverprofile=coverage.out ./monitor/*
在本檔案中,您可以獲得一些詳細資訊以便更好地理解。
https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/409659.html
標籤:
上一篇:恐慌:無法連接:撥號TCPXXXX:5432:連接:連接被拒絕
下一篇:如何傳遞引數來運行測驗代碼
