Posted in

Go测试并行化陷阱:testing.T.Parallel()与共享state、time.Now()硬编码、os.TempDir()竞争——附go test -race增强检测方案

第一章:Go测试并行化的本质与风 … Go测试并行化陷阱:testing.T.Parallel()与共享state、time.Now()硬编码、os.TempDir()竞争——附go test -race增强检测方案Read more

Posted in

Go CI/CD流水线卡在go test?揭秘testing.T.Parallel()与-GOMAXPROCS=1的冲突机制,4种并行测试稳定性加固方案(含GitHub Action matrix配置)

第一章:Go CI/CD流水线卡 … Go CI/CD流水线卡在go test?揭秘testing.T.Parallel()与-GOMAXPROCS=1的冲突机制,4种并行测试稳定性加固方案(含GitHub Action matrix配置)Read more

Posted in

Go测试并发安全盲区:testing.T.Parallel()与共享变量、testify/assert在goroutine中panic、testMain全局状态污染——3个必加checklist

第一章:Go测试并发安全盲区总览 … Go测试并发安全盲区:testing.T.Parallel()与共享变量、testify/assert在goroutine中panic、testMain全局状态污染——3个必加checklistRead more