后端开发 Golang测试模拟数据与mock使用示例 首先使用模拟数据测试简单函数逻辑,再通过testify/mock库mock接口依赖;例如对PaymentGateway接... 7 0 作者 2025年10月12日