本节我们使用github.com/golang/mock/gomock ,该库提供了一组模拟对象,可以与接口测试 ... Mock of GetSetter interface type MockGetSetter struct { ctrl *gomock.
確定! 回上一頁