mock 测试和gomock 的使用 ... type UserDB struct { db *sql. ... 还好go 官方就提供了 gomock 这个工具,来帮我们更好的完成单元测试的工作。
確定! 回上一頁