Posted in

Go语言三件套单元测试覆盖率提升至94.6%的7个关键技巧(含gin test server mock、gorm transaction rollback、viper test override)

第一章:Go语言三件套单元测试覆 … Go语言三件套单元测试覆盖率提升至94.6%的7个关键技巧(含gin test server mock、gorm transaction rollback、viper test override)Read more

Posted in

Go微服务单元测试覆盖率为何永远卡在62%?——Mock、TestContainer、Wire DI测试框架深度整合方案

第一章:Go微服务单元测试覆盖率 … Go微服务单元测试覆盖率为何永远卡在62%?——Mock、TestContainer、Wire DI测试框架深度整合方案Read more

Posted in

Golang游戏服单元测试覆盖率为何永远卡在68%?揭秘战斗逻辑中time.Sleep、rand、net/http依赖的4种可控注入技法

第一章:Golang游戏服单元测 … Golang游戏服单元测试覆盖率为何永远卡在68%?揭秘战斗逻辑中time.Sleep、rand、net/http依赖的4种可控注入技法Read more

Posted in

Go单元测试覆盖率破90%的硬核路径:table-driven tests设计范式、mock边界识别、test helper抽象层级、go:generate自动化测试桩生成

第一章:Go单元测试覆盖率破90 … Go单元测试覆盖率破90%的硬核路径:table-driven tests设计范式、mock边界识别、test helper抽象层级、go:generate自动化测试桩生成Read more