Posted in

【Golang单元测试覆盖率陷阱】:mock过度、time.Now()硬编码、goroutine泄漏未检测——3个go test -race无法捕获的盲区

第一章:Golang单元测试覆盖 … 【Golang单元测试覆盖率陷阱】:mock过度、time.Now()硬编码、goroutine泄漏未检测——3个go test -race无法捕获的盲区Read more

Posted in

Go测试Mock过度设计?3种轻量替代方案对比:wire binding test stub / interface-only fakes / httptest.Server真服务

第一章:Go测试Mock过度设计 … Go测试Mock过度设计?3种轻量替代方案对比:wire binding test stub / interface-only fakes / httptest.Server真服务Read more