Posted in

【Go包测试隔离漏洞】:testing.T.Cleanup()无法清除init()函数副作用——3个真实线上panic案例与go test -gcflags=-l规避法

第一章:Go包测试隔离漏洞的本质 … 【Go包测试隔离漏洞】:testing.T.Cleanup()无法清除init()函数副作用——3个真实线上panic案例与go test -gcflags=-l规避法Read more

Posted in

Go任务测试覆盖率为何永远卡在63%?揭秘testing.T.Cleanup、testify/suite与mock任务触发器的5层隔离测试框架

第一章:Go任务测试覆盖率为何永 … Go任务测试覆盖率为何永远卡在63%?揭秘testing.T.Cleanup、testify/suite与mock任务触发器的5层隔离测试框架Read more

Posted in

Go测试覆盖率失真元凶:test -coverprofile 被testing.T.Cleanup钩子污染?揭秘go tool cover未公开的钩子兼容缺陷

第一章:Go测试覆盖率失真现象的 … Go测试覆盖率失真元凶:test -coverprofile 被testing.T.Cleanup钩子污染?揭秘go tool cover未公开的钩子兼容缺陷Read more