xfy
77fdb11b06
test(server): 完善 server 模块测试覆盖率
覆盖率从 44.2% 提升至 45.8%,新增测试:
- TestPoolWrapHandler: 协程池处理器包装测试
- TestPoolWrapHandler_WhenStopped: 池停止时包装测试
- TestServer_Proxies: 代理管理测试
- TestServer_Running: 运行状态测试
- TestServer_StopWithNilFastServer: 无服务器停止测试
- TestServer_GracefulStopWithNilFastServer: 无服务器优雅停止测试
- TestServer_GetProxyCacheStats: 代理缓存统计测试
- TestServer_BuildMiddlewareChain_EmptyConfig: 空配置中间件链测试
- TestServer_TrackStats_EmptyBody: 空响应体统计测试
注:Start/startSingleMode 等启动函数适合集成测试
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 18:33:10 +08:00
..
2026-04-03 14:07:42 +08:00
2026-04-03 18:33:10 +08:00
2026-04-03 17:36:58 +08:00
2026-04-03 18:33:10 +08:00
2026-04-03 18:24:21 +08:00
2026-04-03 17:49:11 +08:00
2026-04-03 16:57:48 +08:00
2026-04-03 17:49:11 +08:00
2026-04-03 17:36:58 +08:00
2026-04-03 17:37:05 +08:00
2026-04-03 16:57:59 +08:00