Posted in

Go测试覆盖率高≠性能安全:用go test -cpuprofile+go tool pprof发现单元测试中埋藏的goroutine泄漏

第一章:Go测试覆盖率高≠性能安 … Go测试覆盖率高≠性能安全:用go test -cpuprofile+go tool pprof发现单元测试中埋藏的goroutine泄漏Read more

Posted in

go test -cover到底准不准?揭秘覆盖率虚高背后的AST解析盲区,资深Gopher都在用的校验方案

第一章:go test -cov … go test -cover到底准不准?揭秘覆盖率虚高背后的AST解析盲区,资深Gopher都在用的校验方案Read more

Posted in

Go标准库testing.T.Cleanup()未被重视的副作用(panic传播、goroutine泄露、test context污染):CI失败率下降47%的关键补丁

第一章:Go标准库testing … Go标准库testing.T.Cleanup()未被重视的副作用(panic传播、goroutine泄露、test context污染):CI失败率下降47%的关键补丁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

Posted in

Go语言测试驱动开发(TDD)真经:从table-driven test到mock接口设计,覆盖率达92.6%的实测方案

第一章:Go语言测试驱动开发(T … Go语言测试驱动开发(TDD)真经:从table-driven test到mock接口设计,覆盖率达92.6%的实测方案Read more

Posted in

为什么Go test -c生成的C可执行文件没有__libc_start_main?,揭秘Go链接器对C终态入口的静默劫持机制

第一章:Go test -c生成 … 为什么Go test -c生成的C可执行文件没有__libc_start_main?,揭秘Go链接器对C终态入口的静默劫持机制Read more

Posted in

Go测试覆盖率≠质量保障!:用go test -coverprofile+gocov+custom-assert重构10万行代码的断言体系

第一章:Go测试覆盖率的本质与误 … Go测试覆盖率≠质量保障!:用go test -coverprofile+gocov+custom-assert重构10万行代码的断言体系Read more